material icon indicating copy to clipboard operation
material copied to clipboard

ng-click on md-buttons within md-fab-toolbar do not work on IE

Open McTalian opened this issue 11 years ago • 18 comments

Demo: Open the fab-toolbar, click on the right-most button (the comment button). On Chrome, the md-fab-toolbar will toggle which side of the screen it is on. On IE, nothing happens. I initially tested this with a console print, but this is a bit more visually obvious.

Angular 1.4.4, Material 0.11.0

Have not tested other versions at this time.

McTalian avatar Sep 17 '15 12:09 McTalian

I'm not at my IE machine right now, but I can test this next week when I get back home and see if I can find the problem.

topherfangio avatar Sep 17 '15 16:09 topherfangio

Has this been looked into? Do I need to provide any more demos?

McTalian avatar Oct 01 '15 14:10 McTalian

Sorry; I lost track of this one when I got back home. I am headed to the office this afternoon and will look into it.

topherfangio avatar Oct 01 '15 15:10 topherfangio

Confirmed; appears to only affect IE (tested Edge; assume 11 as well).

topherfangio avatar Oct 01 '15 21:10 topherfangio

Well i was trying to add md-buttons to fab-toolbar but it seems i can't get ng-click working. Buttons appear, but after clicking on them toolbar is sliding out. Checked on safari and chrome. (newest)

darek avatar Oct 25 '15 10:10 darek

Chrome: 48 and Firefox 41 Material: 1.0.0-rc1 example app

eparis avatar Oct 30 '15 20:10 eparis

Although it is working in 1.0.0-rc2. Wish I had those 2 hours back. Thank you whoever fixed it!

eparis avatar Oct 30 '15 20:10 eparis

@eparis Quite a few things have changed recently, is this also fixed for you on HEAD?

topherfangio avatar Oct 30 '15 20:10 topherfangio

https://cdn.gitcdn.xyz/cdn/angular/bower-material/v1.0.0-rc2-master-ee98b70/angular-material.js seems to be working.

Note: I'm only using chrome and FF, not IE. (and both of those were broken in -rc1)

eparis avatar Oct 30 '15 22:10 eparis

@darek That is by design. Once you have clicked a button, the fab toolbar is designed to close. We are talking about adding a md-locked-open attribute or something similar so that you can have better control over this, as well as other, components. Is that something you would be interested in?

topherfangio avatar Nov 02 '15 15:11 topherfangio

An md-locked-open feature would be useful, for sure!

NiXXeD avatar Nov 09 '15 22:11 NiXXeD

@NiXXeD We have a separate issue to track and discuss md-locked-open (#4973).

I'm going to go ahead and close this issue since the original problem has been solved. Please post any new comments in the other thread or post a new issue.

Thanks!

topherfangio avatar Nov 09 '15 23:11 topherfangio

I'm still having this issue with on 1.0.2 in IE11 on Windows 10. Buttons ng-click handlers are not working

janvandenberg avatar Jan 23 '16 13:01 janvandenberg

@janvandenberg The following Codepen seems to work if you click the Comment icon: http://codepen.io/topherfangio/pen/yexrxy?editors=1010

If you're still having trouble, can you please open a new issue with a Codepen that shows the trouble you're having?

topherfangio avatar Feb 04 '16 22:02 topherfangio

@topherfangio It works fine until you want to click on a button inside the toolbar. The $scope.check function for example?; doesn't fire when you click on it. I've change the component to a FAB SpeedDial because I could not make the FAB Toolbar work in IE11 (Windows 7)

janvandenberg avatar Feb 08 '16 07:02 janvandenberg

That code pen (mostly) works for me on Linux + Chrome 50. Clicking on the 'comment' button inside the toolbar causes it to close and the toolbar to switch from left to right (or vice versa)

(there is some bug in here in that after clicking the comment button the open/close radio button does work the first time I click open, but does work the second time... But that isn't what this issue was about...)

eparis avatar Feb 08 '16 14:02 eparis

I've tested it on Chrome, Safari and Edge. Works fine. Except not IE11 on Windows 7.

janvandenberg avatar Feb 08 '16 14:02 janvandenberg

Same issue for me. this will not work on IE11 on Windows 7. The codepen linked by @topherfangio does not work for me in IE but it will in chrome.

WDShannon avatar Mar 22 '16 19:03 WDShannon