material icon indicating copy to clipboard operation
material copied to clipboard

<md-button> ng-click fires inconsistently with Ionic Framework/ng-Material latest versions

Open bradmartin opened this issue 11 years ago • 39 comments

http://codepen.io/anon/pen/MYOeap

The plunker above works fine, I found this on the Ionic Framework forums and it's functional and the click is fired as expected.

However the same code with the latest ionic css/js files along with latest Angular Material via bower install, the click doesn't work as intended. Any reason? I've also installed the #master but the clicks on md-button still don't work very well. It may fire once every 10-20 clicks, and sometimes it fires once every 5 clicks. This is a hangup for me right now on moving forward with a project.

bradmartin avatar Feb 05 '15 22:02 bradmartin

Note: ng-click is broken on touch devices and Chrome emulation of such. Chrome desktop is unaffected. The Codepen above: works fine using 0.6.1 or 0.7.0 -- broken on 0.7.1. I suspect it might be because of the hammer.js change on 0.7.1 - Ionic has a similar built-in version of hammer as well...

mikkokam avatar Feb 06 '15 09:02 mikkokam

I'm having issues with this as well.

drastick avatar Feb 20 '15 18:02 drastick

Can you verify whether this issue still exists in 0.8.0-rc1? Hammer.js was removed in 0.7.1 in favor of $mdGestures, so it's very likely because of that.

marcysutton avatar Feb 20 '15 18:02 marcysutton

@marcysutton Yes it still exists.

bradmartin avatar Feb 20 '15 18:02 bradmartin

this is an issue for me as well @marcysutton

stellasoft-will avatar Feb 21 '15 15:02 stellasoft-will

http://forum.ionicframework.com/t/is-there-a-tutorial-for-using-ionic-and-angular-material/14662/14

mikkokam avatar Feb 21 '15 19:02 mikkokam

I am at a loss with this bug as well. Is there a version that has the autocomplete before hammer was removed?

isaiahaguilera avatar Feb 25 '15 01:02 isaiahaguilera

No, autocomplete wasnt implemented until after hammer was removed. On Feb 24, 2015 7:41 PM, "iaaguilera" [email protected] wrote:

I am at a loss with this bug as well. Is there a version that has the autocomplete before hammer was removed?

— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/1406#issuecomment-75889407.

bradmartin avatar Feb 25 '15 01:02 bradmartin

Is there an ETA for a fix or do I just rip it revert to an older version for the near future?

jeffthompson1971 avatar Feb 26 '15 01:02 jeffthompson1971

@jeffthompson1971 - @ThomasBurleson added it to the 0.9.0 milestone over a week ago, so just keep checking for updates.

bradmartin avatar Feb 26 '15 04:02 bradmartin

Anyone? is this going to be fixed? I need to know what the plan is? do i need to drop angular-material and move to something where clicks work on mobile devices?

jeffthompson1971 avatar Feb 28 '15 19:02 jeffthompson1971

Its on the 0.9.0 milestone so they're planning on it but no official word yet. On Feb 28, 2015 1:53 PM, "Jeff Thompson" [email protected] wrote:

Anyone? is this going to be fixed? I need to know what the plan is? do i need to drop angular-material and move to something where clicks work on mobile devices?

— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/1406#issuecomment-76542709.

bradmartin avatar Feb 28 '15 20:02 bradmartin

@ajoslin - Can you help us investigate and resolve this issue ?

ThomasBurleson avatar Feb 28 '15 20:02 ThomasBurleson

tested in 0.8.3 and it s working now ! Thanks !

hiennguyenle avatar Mar 04 '15 09:03 hiennguyenle

This is still happening for me in 0.8.3

drastick avatar Mar 04 '15 13:03 drastick

@nglehien it's not working with v0.8.3-master-c9aae9b . What is your configuration? Did you test it on the mobile emulator or a device? From my testing it will work fine in a standard web browser but on mobile emulators and devices it does not function normally.

bradmartin avatar Mar 04 '15 15:03 bradmartin

Any updates? The latest here was 10 days ago. This seems like a critical bug to me :)

jedihacks avatar Mar 14 '15 21:03 jedihacks

I haven't tested it but someone on the Ionic forums said using the rawgit refs it's working. Can anyone confirm this? http://forum.ionicframework.com/t/is-there-a-tutorial-for-using-ionic-and-angular-material/14662/20?u=bradmartin

I'll try to test it later today.

bradmartin avatar Mar 17 '15 15:03 bradmartin

@bradmartin it was me. and it used to work, but not anymore. that's a risk when using rawgit I guess, code keeps changing (or I jumped too fast to the conclusion).

However, as @mikkokam noted up in the thread, we now have it working and quite stable on 0.7.0. It has some minor drawbacks, but we will stay on it until it (hopefully) gets fixed in 0.9.0

We had some issues at first with the app showing only a blank screen after the splashscreen when running it on an Android device, but it seems my team figured it out last night, so if you go this way and run into the same issue let me know and I'll post more details.

rlucian avatar Mar 18 '15 08:03 rlucian

Yea im stuck on 0.7.0 also. I have a slight issue after the splash screen but its not a blank screen, the actual app page flashes, then the login page appears. I have the ionic.platformready() configured correctly as it worked prior to using ng-material so if you want to share what youve done it might be similar. Thanks. On Mar 18, 2015 3:26 AM, "radu" [email protected] wrote:

@bradmartin https://github.com/bradmartin it was me. and it used to work, but not anymore. that's a risk when using rawgit I guess, code keeps changing (or I jumped too fast to the conclusion). However, as @mikkokam https://github.com/mikkokam noted up in the thread, we now have it working and quite stable on 0.7.0. It has some minor drawbacks, but we will stay on it until it (hopefully) gets fixed in 0.9.0 We had some issues at first with the app showing only a blank screen after the splashscreen when running it on an Android device, but it seems my team figured it out last night, so if you go this way and run into the same issue let me know and I'll post more details.

— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/1406#issuecomment-82815849.

bradmartin avatar Mar 18 '15 12:03 bradmartin