Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngMobile's overridden ngClick directive ignores the disabled attribute of a button element #3124

Closed
davgothic opened this issue Jul 3, 2013 · 0 comments

Comments

@davgothic
Copy link

If you click a button that has a disabled state using your mouse in a desktop environment, then the disabled state of the button is respected. However tapping the button in a mobile/touch screen environment leads to the disabled state being ignored.

Here is an example of the problem: http://embed.plnkr.co/ru3Sro/preview

bshepherdson pushed a commit to bshepherdson/angular.js that referenced this issue Jul 24, 2013
 - the ngClick attribute was always triggered, regardless the ngDisabled/disabled attributes
 - we now check the DOM disabled status before triggering the original click event
 - deals with angular#3124 angular#3132 /cc @shepheb
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant