mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
Fixed <a href> tap performance using polyfill
This commit is contained in:
@ -66,15 +66,15 @@
|
||||
if(ele.control) {
|
||||
return inputTapPolyfill(ele.control, e);
|
||||
}
|
||||
} else if( ele.tagName === "A" ) {
|
||||
var href = ele.getAttribute('href');
|
||||
if(href) {
|
||||
ele.click();
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/* Let ng-click handle this
|
||||
else if( ele.tagName === "A" || ele.tagName === "BUTTON" ) {
|
||||
ele.click();
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
ele = ele.parentElement;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user