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

ngModel not updating with input type="search" clear button in IE #13256

@aderowbotham

Description

@aderowbotham

When using an input type="search" field with AngularJS 1.4.7 in IE 9, 10 or 11: When you click the search clear / cancel button rendered inside the field (after entering text) in Internet Explorer the model value does not reset to '' or undefined.

Example HTML:

<input ng-model="searchVal" type="search">
<p>searchVal = {{ searchVal }}</p>

http://plnkr.co/edit/zE2qMMfaJK11KYfUWZzr?p=preview

Model updates as expected in Chrome and Safari.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions