-
Notifications
You must be signed in to change notification settings - Fork 27.4k
AngularJS issue: Anchor<a> not working as expected on IE 11. #14596
Comments
This looks like an IE bug that is fixed in 1.5.5 (and will be included in 1.4.11. You should upgrade to 1.5.x, though) That said, using anchors as buttons is very bad for accessibility, and you should not do it in the first place. |
@Narretz thanks for the update. Meanwhile I tried to test the said solution by replacing anchor tags with button in my code and sadly it does not works. The scenario was like this earlier. |
I tested with 1.5.5, and couldn't repro the bug. |
@Narretz seems you are right. I tested the with 1.5.5 and could not repro the issue. At the same time I tested it out with 1.4.9 and still could not repro the issue. |
Do you want to request a feature or report a bug?
Bug or unexpected behaviour.
What is the current behavior?
anchor tag with ng-click behaves differently on IE11.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (template: http://plnkr.co/edit/tpl:yBpEi4).
Steps:
http://codepen.io/ninadd/pen/mPovzv
What is the expected behavior?
On click of "add" button element should be added to the next list irrespective of the previous additions.
What is the motivation / use case for changing the behavior?
Which versions of Angular, and which browser / OS are affected by this issue? Did this work in previous versions of Angular? Please also test with the latest stable and snapshot (https://code.angularjs.org/snapshot/) versions.
Angular v1.4.9
Browser: IE11
OS: Windows 8.1 x64
Other information (e.g. stacktraces, related issues, suggestions how to fix)
Fix:
Replacing the anchor tags with button tags seems to do the trick. But my question is why IE interprets anchor tag differently than other browsers.
The text was updated successfully, but these errors were encountered: