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

fix(core): popover escape key to close should not bubble to dialog #12957

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mikerodonnell89
Copy link
Member

@mikerodonnell89 mikerodonnell89 commented Jan 21, 2025

fixes #12605

The entire popover should have a keydown escape handler to close the popover body. Also, multi-input/multi-combobox/combobox all had their own escape key handlers for closing their popovers, resulting in the popover service close function being called twice due to the popover now handling this itself

@mikerodonnell89 mikerodonnell89 requested a review from a team January 21, 2025 22:48
@mikerodonnell89 mikerodonnell89 self-assigned this Jan 21, 2025
Copy link

netlify bot commented Jan 21, 2025

Deploy Preview for fundamental-ngx ready!

Name Link
🔨 Latest commit bb7414e
🔍 Latest deploy log https://app.netlify.com/sites/fundamental-ngx/deploys/6798ff14527af3000898df5a
😎 Deploy Preview https://deploy-preview-12957--fundamental-ngx.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Jan 21, 2025

Visit the preview URL for this PR (updated for commit bb7414e):

https://fundamental-ngx-gh--pr12957-fix-12605-0iamnfpw.web.app

(expires Fri, 31 Jan 2025 16:04:47 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 41b993ee8e451bd7c6770b342ce142dc886eacff

@mikerodonnell89 mikerodonnell89 changed the title [WIP] fix(core): popover escape key to close should not bubble to dialog fix(core): popover escape key to close should not bubble to dialog Jan 22, 2025
@alexhristov14
Copy link
Contributor

The popover works well but I've noticed that the multi-input and the multi-combobox now act differently on escape. After navigating in the multi-combobox items with the arrows, you have to press escape twice before closing it completely. Was that intentional?

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.

[Accessibility: ACC-270.7] List box: Dialog closes on closing the list box
2 participants