Search code examples
angularjsionic-frameworkangularjs-ng-click

ng-click triggering twice in iOs divice only


I am using ng-click for div which will filter the data. I am using collection-repeat to show large data.

When the data is less, the click only triggers once, but when the data is huge, the click triggers twice. I tried using fastclick.js but didn't work out. I have only added angularjs once through ionic.bundle.min.js.

I can't put the demo as this is confidential project.

And also, THIS PROBLEM ONLY OCCURS IN IOS, NOT IN ANDROID AND PC


Solution

  • Yes there is problem, sometimes ng-click fires twice.

    please check: https://github.com/driftyco/ionic/issues/1022

    they have suggested multiple solutions