Event is triggered even if the div
is disabled.
You can avoid this by using lazy evaluation of expressions like isDisabled || action()
so action would not be called if isDisabled
is true
.
In your case it will be:
ng-click="cancelTicket === false || CancelTicket(ticketPin)"