mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Blur the active element when closing edit dialog via action
Fixes #2097
This commit is contained in:
parent
3e20892fdf
commit
b0d93df387
@ -2431,10 +2431,12 @@ RED.editor = (function() {
|
|||||||
init: function() {
|
init: function() {
|
||||||
RED.tray.init();
|
RED.tray.init();
|
||||||
RED.actions.add("core:confirm-edit-tray", function() {
|
RED.actions.add("core:confirm-edit-tray", function() {
|
||||||
|
$(document.activeElement).blur();
|
||||||
$("#node-dialog-ok").click();
|
$("#node-dialog-ok").click();
|
||||||
$("#node-config-dialog-ok").click();
|
$("#node-config-dialog-ok").click();
|
||||||
});
|
});
|
||||||
RED.actions.add("core:cancel-edit-tray", function() {
|
RED.actions.add("core:cancel-edit-tray", function() {
|
||||||
|
$(document.activeElement).blur();
|
||||||
$("#node-dialog-cancel").click();
|
$("#node-dialog-cancel").click();
|
||||||
$("#node-config-dialog-cancel").click();
|
$("#node-config-dialog-cancel").click();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user