Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Expand/Collapse events triggered only on state change #33

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

zipper
Copy link
Owner

@zipper zipper commented Oct 23, 2024

Expand and collapse events are now dispatched only when the action is actually performed. For example, if an item is already expanded, calling the expand method will not dispatch expand.collapsable or expanded.collapsable events, since no action occurred. Previously, these events were dispatched regardless of the state. The same behavior change has been applied to collapse-related events.

Expand and collapse events are now dispatched only when the action is actually performed. For example, if an item is already expanded, calling the expand method will not dispatch `expand.collapsable` or `expanded.collapsable` events, since no action occurred. Previously, these events were dispatched regardless of the state. The same behavior change has been applied to collapse-related events.
@zipper zipper merged commit 460e0fd into master Oct 23, 2024
1 check passed
@zipper zipper deleted the expand-collapse-only-when-possible branch October 23, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant