orchidjs / tom-select

Tom Select is a lightweight (~16kb gzipped) hybrid of a textbox and select box. Forked from selectize.js to provide a framework agnostic autocomplete widget with native-feeling keyboard navigation. Useful for tagging, contact lists, etc.
https://tom-select.js.org
Apache License 2.0
1.66k stars 124 forks source link

[Bug]: The select won't open on click #701

Open Raven0us opened 8 months ago

Raven0us commented 8 months ago

Bug description

If openOnFocus: false, clicks don't open the select, neither does the key Space.

Auto focus events are noise to a screen reader (jumping from document to element back to document).

Expected behavior

Clicking the control or hitting Space should open the select.

Steps to reproduce

https://codepen.io/Raven0us/pen/GRLKNGX

Additional context

Latest version

github-actions[bot] commented 4 months ago

This issue has not been active in 120 days and has been marked "stale". Remove stale label or comment or this will be closed in 15 days

vilinicz commented 4 months ago

Confirming, with openOnFocus: false options dropdown doesn't open at all.

pereorga commented 4 months ago

I think this is by design? With openOnFocus: false it opens only when the user types something and the search matches. I actually use this.

github-actions[bot] commented 2 weeks ago

This issue has not been active in 120 days and has been marked "stale". Remove stale label or comment or this will be closed in 15 days