PDA

View Full Version : [CLOSED] beforeremove event not fired on TreeStore when removing child nodes



jaara
9 May 2014, 8:34 PM
ExtJS version: 5.0.0.736

Calling: node.removeChild(childNode);

doesn't trigger "beforeremove" event on the TreeStore

"remove" is fired, however, the parentNode reference is already nulled so I need the "beforeremove" instead

Looking at NodeInterface.js:815-822:
me.callStore('beforeNodeRemove', [[node], !!isMove]);
node.previousSibling = node.nextSibling = node.parentNode = null;
me.fireEventArgs('remove', [me, node, !!isMove]);

the store.beforeNodeRemove is called, however, this method doesn't fire the beforeremove event..

Is this call missing or am I missing anything?

Thanks,
Jaro

5qo

mitchellsimoens
14 May 2014, 4:42 AM
I added a fiddle test case, please post test cases when reporting bugs.

Thanks for the report! I have opened a bug in our bug tracker.