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

"Uncaught (in promise) TypeError: t is null" when pressing Tab key with empty input and dropdown is shown #1348

Closed
3 tasks done
Koopzington opened this issue May 22, 2024 · 0 comments
Labels

Comments

@Koopzington
Copy link
Contributor

Koopzington commented May 22, 2024

Prerequisites

  • I am running the latest version (4.26.5)
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

💥 Demo Page

https://jsbin.com/jekuqap/edit?html,js,output

Explanation

An uncaught error is logged in the console when the dropdown is shown, the input is empty and the user presses the Tab key, most likely because it couldn't map '' to a value.

Uncaught (in promise) TypeError: t is null
    getMappedValue suggestions.js:456
    onKeyDown suggestions.js:92
    promise callback*onKeyDown suggestions.js:55
    binding suggestions.js:32
    setTimeout handler*show dropdown.js:120
    onFocusBlur events.js:231

Even though it breaks nothing i figured this error should be prevented.

@yairEO yairEO added the Bug label May 25, 2024
@yairEO yairEO closed this as completed in 65c75ea Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants