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

[WC-2474]: Handle keyboard nav for input elements in Gallery #1104

Merged
merged 9 commits into from
Jun 26, 2024

Conversation

rahmanunver
Copy link
Contributor

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

Added a new handler method to check if the element is an HTMLInputElement, if so stop the propagation.

What should be covered while testing?

Demo project link and #frontend thread:
https://mendix.slack.com/archives/CJZ85RLTA/p1714654971335249

Input elements inside Gallery widget should now be able to use arrow keys to move cursor when focused, but this means where are stopping event propagation for the input elements, which means keyboard navigation behavior for text inputs are going to change.

@rahmanunver rahmanunver requested a review from a team as a code owner June 5, 2024 09:45
@rahmanunver rahmanunver force-pushed the fix/wc-2474_gallery_keyboard_propagation branch from e327f64 to 65cf7cf Compare June 11, 2024 10:22
iobuhov
iobuhov previously approved these changes Jun 11, 2024
Copy link
Collaborator

@iobuhov iobuhov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rahmanunver rahmanunver force-pushed the fix/wc-2474_gallery_keyboard_propagation branch 2 times, most recently from ed7ad3c to 94ca1be Compare June 21, 2024 14:12
samuelreichert
samuelreichert previously approved these changes Jun 21, 2024
leonardomendix
leonardomendix previously approved these changes Jun 25, 2024
@rahmanunver rahmanunver force-pushed the fix/wc-2474_gallery_keyboard_propagation branch from 94ca1be to c099c7e Compare June 25, 2024 15:20
@rahmanunver rahmanunver merged commit 7db8efd into main Jun 26, 2024
14 checks passed
@rahmanunver rahmanunver deleted the fix/wc-2474_gallery_keyboard_propagation branch June 26, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants