amsik / liquor-tree

Tree component based on Vue.js
MIT License
398 stars 95 forks source link

node:added event not fired when parent collapsed #222

Open gregjan opened 3 years ago

gregjan commented 3 years ago

Please advise. I am trying to listen for the "node:added" event in order to perform some work on new nodes that people add into my tree. I've noticed that the node:added event is not triggered when the parent node is collapsed. The event seems to be eclipsed by the tree:data:fetch. This can be verified on the documentation site's event demo. If you go to that demo and immediately click on the "Add Child" link, you can examine the events and see this behavior. Is there an explanation or is this an inconsistency that needs to be resolved? Many thanks for this versatile component! Greg Jansen