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.
Using ng-cloak in IE9 prevents Enter key from submitting the form. #10728
Open
Description
Overview: When the ng-cloak directive is applied to a div containing input controls, you can no longer submit the form by using the Enter key in IE9.
Angular version(s): 1.3.4, 1.3.8
Browser & OS: Internet Explorer 9, Windows 7
Reproducable: Always
Reproduction: Available in this plunker: http://plnkr.co/edit/#!/ELtNjKPfKIW3Si2uJGFC
With markup similar to
<form name="form" novalidate ng-submit="save()">
<div ng-cloak>
<label for="one">One:</label>
<input id="one" ng-model="one" type="text"/>
<label for="two">Two:</label>
<input id="two" ng-model="two" type="text"/>
<button type="submit" value="save">Save</button>
</div>
</form>
you cannot submit the form by pressing the Enter key while the focus is on one of the input controls. You can use the Enter key in other browsers (including IE10), or if you remove the ng-cloak directive. This has been replicated on multiple workstations.