I am using Ionic in the latest Chrome Version and Chrome canary for some very ODD reason Right click causes ng-click
to trigger.
Code Pen demonstrating the issue
any one can shed some light ?
I am using Ionic in the latest Chrome Version and Chrome canary for some very ODD reason Right click causes ng-click
to trigger.
Code Pen demonstrating the issue
any one can shed some light ?
Change your Button tag by this,
<button type="button" class="button button-large button-energized" ng-click="test()">click me!!!</button>
Or
<button type="button" class="button button-large button-energized" ng-click="test($event)">click me!!!</button>
and on your controller:
$scope.test = function($event){$event.preventDefault();alert(1);
Hope this helps.
© 2022 - 2024 — McMap. All rights reserved.
PointerEvent
where you can detectwhich
button of the mouse is clicked. In Chome, there's only aMouseEvent
where thewhich
property always =1
(left click) – Wardmote