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

[core] fix(Overlay): escape key closing behavior #5349

Merged
merged 3 commits into from
Jul 8, 2022

Conversation

dlech
Copy link
Contributor

@dlech dlech commented Jun 2, 2022

Fixes #5099, fixes #4300

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

This is a couple of small fixes related to pressing the escape key on overlays.

Reviewers should focus on:

Screenshot

@dlech dlech force-pushed the overlay-fixes branch 2 times, most recently from 83778a0 to a82763a Compare June 3, 2022 15:45
dlech added 2 commits June 3, 2022 12:05
This replaces use of the deprecated keyboard event `which` property
with the proper `key` property.

Issue: palantir#4165
This adds a call to e.stopPropagation() to prevent nested overlays
from closing on a single key press.

Fixes: palantir#5099
@adidahiya
Copy link
Contributor

Nice, this seems to fix #4300 as well! Although I generally don't love stopPropagation(), I think we can go ahead and try this fix out in the wild and see how it goes. Thanks @dlech

@adidahiya adidahiya changed the title Overlay fixes [core] fix(Overlay): escape key closing behavior Jul 8, 2022
@adidahiya adidahiya merged commit 97608d4 into palantir:develop Jul 8, 2022
@dlech dlech deleted the overlay-fixes branch July 8, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants