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

Idea: Provide option to have KeyHandler throw an error if not inside a FocusGroup #35

Open
dylanpyle opened this issue Apr 25, 2024 · 0 comments

Comments

@dylanpyle
Copy link
Member

It looks like we explicitly do nothing in this case right now:
https://github.com/ca-la/react-focused-key-handler/blob/main/src/key-handler/index.tsx#L43

If I'm trying to compose multiple layers of key-handling components under a parent FocusGroup, it would be nice to have some kind of "strict mode" to ensure I don't accidentally render them outside of one later on.

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