You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It opens two dialogs (pull the second one out of the way to see the first). When you click "okay" you should get a notification. It doesn't work on the first dialog.
The work around is to not pass buttons in, but specify it directly in the factory. That is fine and probably the better way to do things, but I am surprised that the code doesn't work.
The text was updated successfully, but these errors were encountered:
When you specify buttons definition directly, each initialized instance will gets own copy.
But when passing buttons variable by reference and since your dialog is transient, the second call initializes a new instance and when the DOM element for the button is created, its saved along with the button definition! Thus overriding the previous value.
I realize after digging through the code that how I was doing things is not really the correct way to do it, but there may still be a bug here.
Here is the fiddle: http://jsfiddle.net/33z0da4f/
It opens two dialogs (pull the second one out of the way to see the first). When you click "okay" you should get a notification. It doesn't work on the first dialog.
The work around is to not pass buttons in, but specify it directly in the factory. That is fine and probably the better way to do things, but I am surprised that the code doesn't work.
The text was updated successfully, but these errors were encountered: