X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1067bdcc2f6038b6ffd6a9e3100b0ff75eeb672a..ea854b3eae2b03d3eab4f9b937798024648fc8ed:/src/editor/modules/nodePane/nodePane.js diff --git a/src/editor/modules/nodePane/nodePane.js b/src/editor/modules/nodePane/nodePane.js index f7e6694..85a6fdd 100644 --- a/src/editor/modules/nodePane/nodePane.js +++ b/src/editor/modules/nodePane/nodePane.js @@ -35,6 +35,9 @@ return function(sandbox) { var module = this; if(!listens) { wlxmlNodeElement.document.on('change', function(event) { + if(currentNode && !currentNode.isInDocument()) { + module.setNodeElement(null); + } if(event.type === 'nodeAttrChange' && event.meta.node.sameNode(currentNode)) { module.setNodeElement(currentNode); }