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

Add click outside handler to close time travel dropdown #2379

Open
coderabbitai bot opened this issue Jan 23, 2025 · 1 comment
Open

Add click outside handler to close time travel dropdown #2379

coderabbitai bot opened this issue Jan 23, 2025 · 1 comment
Assignees

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 23, 2025

Context

The time travel dropdown in the project map should close when clicking outside of it to improve user experience.

Implementation Details

  • Add click outside handler using useEffect and useRef hooks
  • Close the dropdown when clicking outside of the dropdown container
  • Clean up event listener on component unmount

References

@mohitb35
Copy link
Collaborator

In continuation with this, should also address this point for other controls.

This includes site selection, year selection, source selection.

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

No branches or pull requests

1 participant