feat: tray's primary button function will no longer run when clicking anywhere in #red-ui-editor-shade

This commit is contained in:
Allan Oricil
2025-04-28 15:38:13 -03:00
parent a113392b50
commit c0920aaa8a

View File

@@ -230,14 +230,6 @@
editorStack = $("#red-ui-editor-stack");
$(window).on("resize", handleWindowResize);
RED.events.on("sidebar:resize",handleWindowResize);
$("#red-ui-editor-shade").on("click", function() {
if (!openingTray) {
var tray = stack[stack.length-1];
if (tray && tray.primaryButton) {
tray.primaryButton.click();
}
}
});
},
show: function show(options) {
lowerTrayZ();