brianvoe / slim-select

Slim advanced select dropdown
http://slimselectjs.com
MIT License
1.03k stars 195 forks source link

Add option to disable automatic focus of search field #549

Closed ScoobyDid closed 3 months ago

ScoobyDid commented 3 months ago

Feature request - add option to disable automatic focus of search field

if select has search feature enabled, when it opens, search input gets focus.

This is convenient on desktop, but on mobile, virtual keyboard appears every time select is opened - because search input gets focus.

It would be awesome to have an option to control whether the input should get focus, it probably should be not difficult to implement.

Currently a workaround for this is to blur input as soon as it gets focus, on beforeOpen event, but this is a crutch, it makes top navbar appear in mobile browsers if it was hidden (at least in chrome) and may not work in certain cases.

brianvoe commented 3 months ago

no thanks