Skip to content

Commit

Permalink
Fix #898 b-field refresh after validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jtommy committed Jan 11, 2019
1 parent 3bbc5ef commit 07d3897
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/utils/FormElementMixin.js
Expand Up @@ -119,16 +119,18 @@ export default {
}
this.isValid = isValid

if (this.parentField) {
// Set type only if not defined
if (!this.parentField.type) {
this.parentField.newType = type
}
// Set message only if not defined
if (!this.parentField.message) {
this.parentField.newMessage = message
this.$nextTick(() => {
if (this.parentField) {
// Set type only if not defined
if (!this.parentField.type) {
this.parentField.newType = type
}
// Set message only if not defined
if (!this.parentField.message) {
this.parentField.newMessage = message
}
}
}
})

return this.isValid
}
Expand Down

0 comments on commit 07d3897

Please sign in to comment.