I am trying to have multiple dialogs on my page using dijit/Dialog
. I want dialogs to be non-modal so I used this question as a guide to get rid of the background underlay.
However when I use a DropDownButton
for toggling the windows I'm getting weird behavior. When one dialog is showing everything works fine. When both dialogs are showing the dropdownbuttons will flicker showing/hiding when clicked instead of just hiding
Here is the JSFiddle. To reproduce...
- Show both dialogs under "I"
- Click on "I" again
"I" will now flicker. Sometimes if you click on "B" with both dialogs showing it will fix itself. If both dialogs are closed the issue will be fixed.
I figured it had something to do with the z-index of the dialogs, but the DropDownButton seems to always have a higher z-index than the underlay and the dialog itself.
The other option is making my own FloatingPane
but I'd like to see if this can work.