We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b5ba3 commit defbec0Copy full SHA for defbec0
src/components/modal/README.md
@@ -285,7 +285,7 @@ To prevent `<b-modal>` from closing (for example when validation fails). you can
285
methods: {
286
checkFormValidity() {
287
const valid = this.$refs.form.checkValidity()
288
- this.nameState = valid ? 'valid' : 'invalid'
+ this.nameState = valid
289
return valid
290
},
291
resetModal() {
@@ -307,7 +307,7 @@ To prevent `<b-modal>` from closing (for example when validation fails). you can
307
this.submittedNames.push(this.name)
308
// Hide the modal manually
309
this.$nextTick(() => {
310
- this.$refs.modal.hide()
+ this.$bvModal.hide('modal-prevent-closing')
311
})
312
}
313
0 commit comments