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

TypeError in useFeatureFlags() #1054

Open
matthew-white opened this issue Nov 19, 2024 · 0 comments
Open

TypeError in useFeatureFlags() #1054

matthew-white opened this issue Nov 19, 2024 · 0 comments

Comments

@matthew-white
Copy link
Member

Sometimes, but not always, I see an error like this when I open the browser console:

TypeError: undefined is not an object (evaluating 'n.key.toLowerCase')

The line that's flagged is:

if (event.key.toLowerCase() === 'w') {

I'm not able to reproduce the error consistently. Looking at the code, I'm wondering whether it's possible for event.key to be undefined when event is a keydown or keyup event.

It'd be nice to resolve this error, but I don't think that it's user-facing. Even after seeing the error in the browser console, I'm able to press W+F to toggle Web Form buttons in Frontend.

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