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.

autocomplete: escape always cleans text despite md-escape-options #8917

@clshortfuse

Description

@clshortfuse

Actual Behavior:
Text is cleared always.
If md-escape-options is set to not clear text, it shouldn't

CodePen (or steps to reproduce the issue): *
http://codepen.io/shortfuse/pen/dXWNpy

Angular Versions: *

  • Angular Version: 1.5.5
  • Angular Material Version: master

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * v52
  • OS: * ChromeOS

This is because of the input field type='search'. There should be a preventDefault when escape is pressed since we'll be handling that interaction, and not the browser.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions