-
Notifications
You must be signed in to change notification settings - Fork 3.4k
modal ng-click fire twice on touchscreen #5698
Comments
This issue also occurs when clicking a button in md-menu, it triggers the input under the menu |
Actually this issue is also happening on any touchscreen not only mobile or specific browser. this happens because we're listening to both |
As I mentioned in the link issue, a good test case is placing an input field under an md-menu dropdown. Tapping the dropdown triggers the button properly, but as the dropdown fades the input is then focused. This is a pain in the ass for touch as the keyboard pops up out of nowhere |
+1 For my case I have a side-nav, when the side-nav is opened, I click on the link to load a template. The click closes the side-nav and load the template. The template has an input control in it which gets focused as soon as the template is loaded. |
This is becoming incredibly frustrating, and needs a fix before this framework can be considered of a decent standard. This should be given a high priority tag I think. I can think of a couple of workaround ideas:
|
Just put out a testing version, this is making apps sloppy as hell to users to the point where they are complaining about it as a major usability problem. This should be made a super high priority, I am really confused as to why this keeps getting pushed back. |
I'm going to try a really crappy workaround, and that is selectively switch off listeners depending on user agent. But seriously, why this is getting such little attention is beyond me |
And still nothing. Great stuff guys. I found this on angular/angular.js#6251 Copy pasting some code, which sets a timeout ignoring identical x/y coordinate combinations. This may be of help.
|
@jpike88 - Your issue has never been "pushed back". The Angular Material dev team is very busy with efforts for
|
@jpike88 - Both ngTouch and ngMaterial have swipe gestures and attempt to address the 300ms tap delays in mobile. Similar to Ionic/ngMaterial hybrids, ngTouch is not a supported module with Angular Material v1.0.
|
No wait don't close it, if you just ran the test cases everyone's mentioning, you'd find this issue was occurring with the angular material library all on its own! I momentarily confused ngtouch with angular's internal library, I don't import anything other than angular and angular material. |
Actually it makes sense to close this issue as it initially refers specifically to ng-touch. Please direct your attention to #5696, I think that one deserves the high priority/bug status instead. |
Example of problem below :
http://codepen.io/anon/pen/BovjRy
I am using ng-touch and material in my AngularJS app, but on mobile device the event ng-click fire twice. seems to happen only in $mdmodal
The text was updated successfully, but these errors were encountered: