-
Notifications
You must be signed in to change notification settings - Fork 34
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
making popper dissapear on esc click #1869
making popper dissapear on esc click #1869
Conversation
391628f
to
4ce3c9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r1, 2 of 3 files at r2, all commit messages.
Reviewable status: 3 of 4 files reviewed, 2 unresolved discussions (waiting on @cphelefu)
packages/geoview-core/src/ui/popper/popper.tsx
line 1 at r1 (raw file):
/* eslint-disable react/function-component-definition */
REmove global eslint comment and add a line disable
packages/geoview-core/src/ui/popper/popper.tsx
line 19 at r1 (raw file):
useEffect(() => { const handleEscapeKey = (event: KeyboardEvent) => {
Add a TODO: refactor... this process of escape - going back to caller should be implemented globally
Previously, jolevesq (Johann Levesque) wrote…
Hmm, not sure if we want to do that. Its specific to this method. Where would we put it globally? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 4 files reviewed, 2 unresolved discussions (waiting on @jolevesq)
packages/geoview-core/src/ui/popper/popper.tsx
line 1 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
REmove global eslint comment and add a line disable
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @cphelefu)
packages/geoview-core/src/ui/popper/popper.tsx
line 19 at r1 (raw file):
Previously, cphelefu (Christopher Phelefu) wrote…
Hmm, not sure if we want to do that. Its specific to this method. Where would we put it globally?
The esc key should be dealt globally. UI should keep track of focus component. We will do this as part pf another issue.
f47c139
into
Canadian-Geospatial-Platform:develop
Description
This PR does two things;
Fixes #1870
https://cphelefu.github.io/geoview
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:
I have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature worksNew and existing unit tests pass locally with my changesThis change is