RecursiveTreeView on:toggle unexpected events
nonvenomous opened this issue ยท 1 comments
nonvenomous commented
Current Behavior
- parent 1 (toggled 1st)
- child 1 (toggled 2nd
- parent 2 (toggled 3rd)
- ...
Toggling parent 2
after toggling parent 1
and child 1
causes one unexpected event to dispatch which implies that child 1
was toggled again after parent 2
.
Expected Behavior
Clicking on one parent shouldn't cause a on:toggle
on a different element
Steps To Reproduce
In my repo
- Click on first parent
- Click on first child
- Click on second parent
- unexpected event for first child
Link to Reproduction / Stackblitz
https://stackblitz.com/~/github.com/nonvenomous/skeleton-tree-view-duplicate-events
More Information
No response
Mahmoud-zino commented
@nonvenomous This should be solved with the new version of the tree-view in Skeleton-Next.
However, I will mention this bug in the central issue there to make sure we test for this case when we are done with the implementation ๐
#2358