Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tbl0605 committed Sep 6, 2023
1 parent 6c5b19f commit c0cc254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vue-simple-suggest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export default {
})
},
select(item) {
if (this.selected !== item || (this.nullableSelect && !item)) {
if ((item && this.selected !== item) || (this.nullableSelect && !item)) {
this.selected = item
this.$emit('update:modelSelect', item)
// For backward compatibility:
Expand Down

0 comments on commit c0cc254

Please sign in to comment.