-
Notifications
You must be signed in to change notification settings - Fork 27.5k
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Ng-href with mailto isn't working consistently #6967
Comments
After some more exploration, I've discovered that this tends to happen when the tag is compiled after the page has loaded. For instance in this plunkr, I show two links. The first one is rendered immediately. The second is rendered after 500ms goes by. The first mailto works as expected while the second does not. |
Both links in this plnkr are working (safari 7). Maybe a browser bug? Sent from my iPad
|
Hmm also works for me in safari. This is likely a chrome issue then... |
We've tracked the issue in IE8 and IE9 only. It seems this bug was recently(ish) introduced as we have products running 1.2.13 that don't produce this bug, but 1.2.21 updates do. |
This doesn't seem to be a problem in chrome anymore. |
Did anyone find a solution to this problem? I face it in IE9 - angular 1.2.15 |
As workaround I now added |
This still seems to be a problem. _self workaround does not work for me |
It's not working for me either (nothing happens, no errors). FIXED: |
I assume this was a Chrome bug that has been fixed in the meantime. |
Sorry, I know I'm waaaaaaaaaaay late - I also had this issue and noticed I was doing a ng-href="mailto: {{email}}"; the way I fixed the issue was to put the entire line in {{email}}: in export Component{ Then in the html: Hope this helps some people. |
Let me preface this issue by saying that I am not sure if this issue is specific to my setup and would like to hear if anyone else is seeing this issue.
I am using the Chrome Version 33.0.1750.154 m and I just noticed this issue though I can't really say for certain when it began occurring since I have not changed anything major in my app - which is using angular v1.2.9 - for quite a while.
When I click on a link such as the below
I expect a new tab to open up and direct to my gmail (which is the case for normal mailto anchor tags). However, with the above, that only occurs some of the time and most of the time, it opens up a new tag with the address bar filled in as
mailto:test@gmail.com
If I inspect the html, when it works it will show an event handler on the tag:
and when it doesn't work as expected, that handler is not there.
Thanks for the help.
The text was updated successfully, but these errors were encountered: