only set active to false if it was false before opening the editor.

This commit is contained in:
Niels Lyngsø
2020-06-23 14:41:43 +02:00
parent 2db5496dd6
commit 01199ce88b
@@ -227,6 +227,7 @@
function editBlock(blockObject, openSettings) {
var wasNotActiveBefore = blockObject.active !== true;
blockObject.active = true;
if (inlineEditing === true && openSettings !== true) {
@@ -267,7 +268,9 @@
blockObject.retriveValuesFrom(blockContentClone, blockSettingsClone);
}
blockObject.active = false;
if (wasNotActiveBefore === true) {
blockObject.active = false;
}
editorService.close();
}
};