vue-search-select icon indicating copy to clipboard operation
vue-search-select copied to clipboard

Backspace on input is deleting selected options

Open vitornovo54 opened this issue 5 years ago • 2 comments

When the select input is open and empty hitting backspace will delete all selected options. Is there a method to overwrite this behaviour?

vitornovo54 avatar Sep 27 '19 17:09 vitornovo54

I also had this problem using BasicSelect. Hitting backspace triggers @select with empty object.

I had to use following workaround with all select events:

onSelect(selected) {
    if (!selected.value) return
    ....
}

tonila avatar Dec 09 '19 11:12 tonila

yes, eventually I had to removed it from the component and do a rebuild. But this looks like a nice workaround. Thanks ;)

vitornovo54 avatar Dec 09 '19 11:12 vitornovo54