We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4adfcbd commit f3bd29bCopy full SHA for f3bd29b
src/components/field/QField.js
@@ -122,8 +122,10 @@ export default {
122
__registerInput (vm) {
123
this.input = vm
124
},
125
- __unregisterInput () {
126
- this.input = {}
+ __unregisterInput (vm) {
+ if (!vm || vm === this.input) {
127
+ this.input = {}
128
+ }
129
130
__getBottomContent (h) {
131
if (this.hasError && this.errorLabel) {
src/mixins/parent-field.js
@@ -15,7 +15,7 @@ export default {
15
16
beforeDestroy () {
17
if (!this.noParentField && this.field) {
18
- this.field.__unregisterInput()
+ this.field.__unregisterInput(this)
19
}
20
21
0 commit comments