Skip to content

Commit d6da06a

Browse files
authored
Merge pull request #8 from sj-av/input_event_feature
Fix: Resetting fullInfo object on change only if model value is differen
2 parents 6e370a3 + 27f9535 commit d6da06a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/DadataSuggestions.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ export default {
138138
onChange() {
139139
if (this.model === null || this.model === '') {
140140
this.$emit('update:fullInfo', null);
141-
}
142-
if (typeof this.model === 'string') {
143-
this.$emit('update:fullInfo', null);
141+
} else {
142+
if (this.model !== this.fullInfo?.value) {
143+
this.$emit('update:fullInfo', null);
144+
}
144145
}
145146
this.$emit('input', this.model);
146147
this.$emit('change', this.model);

0 commit comments

Comments
 (0)