JQuery UI Dialog - a modal window temporarily closes a dialog during an action

The fancy window closes the dialog box for the duration of the effect that brings it in - as if the z index bringing it to the top just hit as soon as the effect is over.

Any ideas ?!

The code below ... Of course, if I do not use the effect of the show, it goes straight to the fore and is not a problem.

$(function(){
        var dialogOpts = {
        autoOpen:       false,
        height:         400,
        width:          800,
        position:       ["center", "center"],
        modal:          true,
        closeOnEscape:  true,
        stack:          false,
        draggable:      false,
        hide:           "clip",
        show:           "clip"
    };

        $("#why").dialog(dialogOpts);
+3
source share
1 answer

I also see this problem using jsFiddle code. I believe that the problem exists during the action show: "clip", try changing it to a “slide” or “fade out” or something similar and see if you get rid of your problem.

, , , jQuery "", , .

, ...

0

Source: https://habr.com/ru/post/1737675/


All Articles