Skip to content
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

Combobox: fix selecting elements after opening dropdown with arrow keys #7039

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

MariaBanaszkiewicz
Copy link
Contributor

fix #6978

description:
due to call of combobox.updateSelectedOptionIndex('active', { scrollIntoView: true }); (async) in onDropdownOpen in Select.tsx the reference to the current selected option was set to -1 overwriting 0 from selectActiveOption call. Which then caused the behaviour described in the issue.
Fix provides propper setting reference to the current selected option after opening dropdown with arrows.

@rtivital rtivital changed the title fix selecting elements after opening dropdown with arrow keys Combobox: fix selecting elements after opening dropdown with arrow keys Nov 7, 2024
@rtivital rtivital merged commit 96f789f into mantinedev:master Nov 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select component when dropdown opens with keyboard down it visually selects first element, but doesn't really
2 participants