material icon indicating copy to clipboard operation
material copied to clipboard

Fab Speed Dial throws error when opening a md-dialog

Open cebor opened this issue 11 years ago • 7 comments

Got following error in Chrome when opening a Dialog with a Fab Speed Dial Button.

Error: [$rootScope:inprog] $digest already in progress
http://errors.angularjs.org/1.4.0/$rootScope/inprog?p0=%24digest
    at angular.js:68
    at beginPhase (angular.js:16073)
    at Scope.$apply (angular.js:15817)
    at HTMLButtonElement.FabSpeedDialController.vm.close (angular-material.js:5515)
    at HTMLButtonElement.jQuery.event.dispatch (jquery.js:4435)
    at HTMLButtonElement.elemData.handle (jquery.js:4121)
    at HTMLButtonElement.jQuery.event.special.focus.trigger (jquery.js:4596)
    at Object.jQuery.event.trigger (jquery.js:4316)
    at HTMLButtonElement.<anonymous> (jquery.js:4901)
    at Function.jQuery.extend.each (jquery.js:374)

Using: v0.10.0 with chrome on osx

codepen: http://codepen.io/anon/pen/KpyoJb?editors=101

cebor avatar Jun 10 '15 16:06 cebor

Is this the same for sideNav? I have used a fab on click to open sideNav but, as soon as I add the md-fab-speed-dial directive, the same action throws a rootScope:inprog error.

ryanstrandt avatar Jun 22 '15 13:06 ryanstrandt

@cebor Sorry for the delay in getting to this. Any chance you can provide some example code?

Are you trying to open the dialog when a speed dial item is clicked, or are you trying to put the speed dial inside of the dialog?

topherfangio avatar Jun 24 '15 04:06 topherfangio

@topherfangio

http://codepen.io/anon/pen/KpyoJb?editors=101

just open the speed dial menu and click on the face, then you will see the error in the console.

cebor avatar Jun 24 '15 16:06 cebor

Awesome, thanks! I'm definitely seeing the error.

I'll dig in to find a solution.

topherfangio avatar Jun 24 '15 16:06 topherfangio

+1

animesh1987 avatar Jun 29 '15 00:06 animesh1987

+1

Chentai-Kao avatar Jul 09 '15 08:07 Chentai-Kao

+1

LexFrench avatar Jul 21 '15 23:07 LexFrench