material icon indicating copy to clipboard operation
material copied to clipboard

$mdDialog: weird bug if dialog pops when browser tab is not focused, cannot close the dialog

Open dani3l opened this issue 11 years ago • 10 comments

Hi guys

I found out a weird bug - sometimes, I cannot close the dialog with .cancel() / .hide() I noticed it happened when dialog pops when browser tab is not focused, but it doesn't happend everytime.

In addition - when the bug happens, the dialog onComplete function is not fired.

I'm using 0.10.1-rc3 and latest angular 1.4.4 (bug happens also with angular1.4.3)


Update: I downgraded to 0.10.0 (and 0.10.1-rc1) and it behaves ok. so rc2 and rc3 are buggy


Another issue is the dialog animation in rc3 is choppy

dani3l avatar Jul 27 '15 16:07 dani3l

I also experienced this issue, but i could not figure out when it occurs. Sometimes i just cant close/hide a dialog.

Tyrannmisu avatar Jul 28 '15 07:07 Tyrannmisu

I had a problem like when i open md-dialog and close it,afterwards click event is not triggering in my page(simply nothing is working after i close dialog,again if i tries to open it is not opening)

ramanathan92 avatar Aug 07 '15 17:08 ramanathan92

@Tyrannmisu, @ramanathan92 - please retry with the latest code base from master. Please provide a CodePen if this persists. Here are some starter demo templates that you can use/fork:

  • CodePen template: http://codepen.io/team/AngularMaterial/pen/BNYppz
  • Plunkr template: http://plnkr.co/edit/yP0gB9iTacIQb48thud8?p=preview.

ThomasBurleson avatar Aug 07 '15 19:08 ThomasBurleson

Thanks @ThomasBurleson .It is my fault(my bad).Actually, I added scope: $scope when calling dialog but forgot to add preserveScope: true.That is the reason, it is not allowing me to open dialog.

ramanathan92 avatar Aug 10 '15 07:08 ramanathan92

I did not experience this issue in 0.10.1-rc4 and rc5 for a long time now. :) But i will have a look on master.

Tyrannmisu avatar Aug 10 '15 07:08 Tyrannmisu

@Tyrannmisu Can you please check it on HEAD to see if the problem still occurs?

EladBezalel avatar Oct 02 '15 12:10 EladBezalel

Sry i totaly forgot to post here. :see_no_evil: I did not experience this issue since 0.10.1-rc4 nether on HEAD nor on the official releases. I would say its fixed.

Tyrannmisu avatar Oct 05 '15 09:10 Tyrannmisu

Good morning i am having the same exact issue right now, doesnt anyone have a fix? I am using v1.0.3-master-b707375

lexyfeito avatar Feb 19 '16 14:02 lexyfeito

@lexyfeito please check on head, if it's still happening please post a codepen and I will reopen

EladBezalel avatar Feb 20 '16 10:02 EladBezalel

So i finally figure out the problem, event was being sent undefiened. Stupid me :)

lexyfeito avatar Feb 20 '16 11:02 lexyfeito