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 · 2 comments
Open

TypeError in useFeatureFlags() #1054

matthew-white opened this issue Nov 19, 2024 · 2 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.

@matthew-white
Copy link
Member Author

I've noticed this after clicking certain buttons:

  • Dropdown in the navbar on the right
    • Edit profile
    • Log out
  • Cancel button on the "Reset password" page

@ktuite
Copy link
Member

ktuite commented Dec 11, 2024

I'm noticing this when I visit central without logging in (saw it on staging, too)
Screenshot 2024-12-10 at 4 06 04 PM

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

2 participants