From 4f3e939800d73f3151730db5f9e3592a17d5886e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 8 Apr 2018 18:49:35 +0200 Subject: [PATCH] Fix observer config for AM --- UI/ActionManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/ActionManager.js b/UI/ActionManager.js index 9e929f7..c8fb63a 100644 --- a/UI/ActionManager.js +++ b/UI/ActionManager.js @@ -88,7 +88,7 @@ // todo: careful this could cause bugs if there is another component relying on a listener for this dom element. Maybe create actionManager domlistener? // Maybe just use this listener for ALL action listeners and check if delete, then remove otherwise do current stuff. // Problem is, the listener doesn't work for the node itself only for children and listening to ALL document nodes might be a bad idea?!?!?! - const observeConfig = { childList: false, attributes: true, subtree: false }; + const observeConfig = { childList: true, attributes: true, subtree: false }; if (hasSelector) { this.app.eventManager.attach(e.id + 'childList', function(data) {