Mobius1 / Selectr

A lightweight, vanilla javascript select box replacement. No dependencies.
MIT License
313 stars 77 forks source link

Clearing inputted text via non-keyboard doesn't refresh list #110

Open AzzaAzza69 opened 5 years ago

AzzaAzza69 commented 5 years ago

Reproduce: Using the first dropdown on the demo page, type in: ab Then use either the chrome "x" to clear the text or mouse highlight the ab letters, right-click and select "Cut"

Problem: The input box is now empty and the list shows "No results.". A subsequent keypress (like shift or backspace) will re-populate the list.

I guess using the oninput would be the "correct" way of handling both moue and keyboard entry.