mskocik / svelecte

Flexible autocomplete/select component written in Svelte,

Home Page:https://svelecte.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clicking on the clear icon opens up the list

szegheo opened this issue · comments

Hi,
when the clearable option is set, clicking on the ✖ icon opens up the menu by default. I would like to disable this behaviour and keep the dropdown closed (if it wasn't already opened) but the input focused. I've tried to do it manually using the events and current APIs, but it didn't succeed.

So I would like to request this feature, which - I think - coluld be implemented with a new option.

Thank you!

You can't disable this behaviour, because it's related to input focus, which always happens, when clearing selection. It's by design. Option for this could be added in v4