Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

feat(autocomplete): Confusion around md-selected-item-change. #10551

@topherfangio

Description

@topherfangio

Actual Behavior:

  • What is the issue? * md-selected-item-change fires more often than expected.
  • What is the expected behavior? Users expect the md-selected-item-change event to fire only when an actual item has been selected. It currently fires whenever the selected item changes, even if that is to itself or to a non-item. This typically happens when an item is selected, and then the user types another character in the autocomplete and the md-selected-item-change fires with a value of undefined.

Proposal: *

We should consider adding a separate md-on-select to the <md-autocomplete> that behaves more like the md-on-select from the <md-select> component.

AngularJS Versions: *

  • AngularJS Version: N/A
  • AngularJS Material Version: 1.1.3

References #3003. References #9970.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5: nice to haveThese issues will not be fixed without community contributions.needs: team discussionThis issue requires a decision from the team before moving forward.type: feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions