TotomInc / vue3-select-component

A flexible & modern select-input control for Vue 3.
https://vue3-select-component.vercel.app/
MIT License
51 stars 6 forks source link

First option always focus #103

Open fenn1ks opened 2 months ago

fenn1ks commented 2 months ago

image

https://vue3-select-component.vercel.app/demo/single-select.html

fenn1ks commented 2 months ago

And maybe need add to doc, tree of all classes which are used

TotomInc commented 2 months ago

Hi, thanks for opening this issue. It doesn't seem to be an issue that the first option is focused when the menu is opened.

Could you please clarify what you are trying to achieve?

TotomInc commented 2 months ago

Closed because no repro and lack of details. Feel free to reopen with precise bug report and code repro, thanks.

funkysoul commented 4 days ago

actually i noticed that too.. i worked around it with styling.. but yeh the first item is always active

TotomInc commented 4 days ago

What was the behaviour wanted in your case @funkysoul? When opening the menu, there shouldn't have an option active? What about the first keyboard interaction (e.g. arrow down)?

Would love a bit more feedback on this one, maybe I can add a prop to disable autofocus option on menu open.

funkysoul commented 4 days ago

Exactly.. when initially opening the select no option is selected/marked. If an option was selected and the user closed the select or the focus went off than it should stay selected when reopening.

Sure when the user pushes the key down, then the first item should be focused, if he presses up then it should go the last item.