jQuery UI Dialog - missing close icon

前端 未结 17 2180
礼貌的吻别
礼貌的吻别 2020-11-28 19:15

I\'m using a custom jQuery 1.10.3 theme. I downloaded every straight from the theme roller and I have intentionally not changed anything.

I created a dialog box and I

17条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 19:33

    This appears to be a bug in the way jQuery ships. You can fix it manually with some dom manipulation on the Dialog Open event:

    $("#selector").dialog({
        open: function() {
            $(this).closest(".ui-dialog")
            .find(".ui-dialog-titlebar-close")
            .removeClass("ui-dialog-titlebar-close")
            .html("");
        }
    });
    

提交回复
热议问题