Skip to content

Select throws error to console on keyboard interarction with reset option #15494

Description

@RandomNonameDude

What is the expected behavior?

Select should not throw errors to console.

What is the current behavior?

When a select component has a reset option (but a non-reset option is currently selected) and is focused (the option list is closed), and you start pressing arrow-up key, the component throws error to console when you reach the reset option.

What are the steps to reproduce?

  1. Create select component with reset option
  2. Select non-reset option
  3. Focus the select but don't open the options list (e. g. focus with tab key)
  4. Start pressing the arrow-up until you reach the reset option
  5. Take a look into the console

The issue is reproducible on the Material documentation in select examples, e. g. Select with 2-way value binding or Select with reset option

https://material.angular.io/components/select/examples

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material 7.3.4, tested on Chrome only.

Is there anything else we should know?

Nope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions