Skip to content

[select] Highlight doesn't highlight properly if an Option has the value null #56

@adamhylander

Description

@adamhylander

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example: https://codesandbox.io/s/keen-david-z2r399?file=/src/Demo.tsx

The reproduction is taken from the docs.

Steps:

  1. Open the first select
  2. Press down-arrow key multiple times
  3. Press up-arrow key multiple times

Current behavior 😯

Pressing the down-arrow key doesn't highlight anything but pressing the up-arrow key highlights normally excluding the null value. For the second select, pressing the down-arrow key only highlights the first option and the up-key can only highlight the bottom two options.

Expected behavior 🤔

Pressing either direction key should skip null value Options and highlight the first possible non-null value

Context 🔦

Found while testing

Your environment 🌎

This was done using Firefox Browser. For environment see linked codesandbox.io

Metadata

Metadata

Assignees

Labels

component: selectChanges related to the select component.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions