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

Stop propagation of combobox keyboard events #931

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

haukesomm
Copy link
Collaborator

This PR adds a missing stopPropagation call in the combobox's keyboard event handling in order to prevent those events from bubbling to other elements.

@haukesomm haukesomm added the bug Something isn't working label Jan 20, 2025
@haukesomm haukesomm added this to the 1.0-RC20 milestone Jan 20, 2025
@haukesomm haukesomm requested a review from Lysander January 20, 2025 22:23
@Lysander
Copy link
Collaborator

Just to make it clear: The intent is really to stop propagations upwards the DOM hierarchy and not immediately? (which would have been stopImmediatePropagation)

@haukesomm
Copy link
Collaborator Author

I see, this was my bad. Actually, the intent is to stop any other handler from handling the event. So stopImmediatePropagation() is the right method to call indeed.

This commit adds a missing `stopPropagation` call in the combobox's
keyboard event handling in order to prevent those events from bubbling
to other elements.
@haukesomm haukesomm force-pushed the haukesomm/combobox-propagation branch from 19213aa to b307b42 Compare January 31, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants