Skip to content

First option always focus #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fenn1ks opened this issue Aug 8, 2024 · 7 comments
Closed

First option always focus #103

fenn1ks opened this issue Aug 8, 2024 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@fenn1ks
Copy link

fenn1ks commented Aug 8, 2024

image

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

@fenn1ks
Copy link
Author

fenn1ks commented Aug 8, 2024

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

@TotomInc
Copy link
Owner

TotomInc commented Aug 10, 2024

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
Copy link
Owner

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

@TotomInc TotomInc closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
@funkysoul
Copy link

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

@TotomInc
Copy link
Owner

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
Copy link

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.

@TotomInc TotomInc reopened this Oct 15, 2024
@TotomInc TotomInc added enhancement New feature or request good first issue Good for newcomers labels Oct 15, 2024
@TotomInc
Copy link
Owner

Added shouldAutofocusOption prop on v0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants