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.
2 parents e225495 + 9006cd9 commit 3e71f23Copy full SHA for 3e71f23
lib/vue-simple-suggest.vue
@@ -315,10 +315,13 @@ export default {
315
})
316
},
317
select (item) {
318
- if (this.selected !== item) {
+ if (this.selected !== item || (this.nullableSelect && !item)) {
319
this.selected = item
320
this.$emit('select', item)
321
- this.setText(this.displayProperty(item))
+
322
+ if (item) {
323
+ this.setText(this.displayProperty(item))
324
+ }
325
}
326
327
this.hover(null)
@@ -391,7 +394,7 @@ export default {
391
394
if (hasKeyCode([select, hideList], e)) {
392
395
e.preventDefault()
393
396
if (this.listShown) {
- if (hasKeyCode(select, e) && (this.nullableSelect || this.hovered)) {
397
+ if (hasKeyCode(select, e)) {
398
this.select(this.hovered)
399
400
0 commit comments