Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Arrow keys throw unhandled exceptions when no options are present #201

Closed
josephdecock opened this issue Dec 26, 2019 · 0 comments · Fixed by #202
Closed

[BUG] Arrow keys throw unhandled exceptions when no options are present #201

josephdecock opened this issue Dec 26, 2019 · 0 comments · Fixed by #202
Labels
bug Something isn't working
Milestone

Comments

@josephdecock
Copy link
Contributor

Describe the bug
Pressing the arrow keys throws an unhandled exception if there are no options in the mat-select.

To Reproduce

  1. Go to the demo site.
  2. Open the browser's console
  3. Filter by "Nothing matches this"
  4. Press arrow up or down keys.
  5. See unhandled exception:
Cannot read property 'viewValue' of undefined
at MatSelectSearchComponent._handleKeyup (mat-select-search.component.ts:393)

Expected behavior
Should not throw.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
2 participants