Merge pull request #5122 from AllanOricil/remote_editor_shade_tray_click_listener

feat: tray's primary button function will no longer run when clicking anywhere in #red-ui-editor-shade
This commit is contained in:
Nick O'Leary
2025-06-25 17:03:23 +01:00
committed by GitHub

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();