-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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(components): [collapse-transition] fixed transition canceled bug #13358
Conversation
👋 @kaine0923, seems like this is your first time contribution to element-plus.
|
Hello @kaine0923, thank you for contributing to element-plus, please see our guideline to see how to make contribution |
🧪 Playground Preview: https://element-plus.run/?pr=13358 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
closed #13357
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.Description
🤖 Generated by Copilot at 25d6fd9
Improved the
collapse-transition
component by adding functions to handle cancelled transitions and reset the element style. Modified the filecollapse-transition.vue
to implement these functions.Related Issue
Fixes #___.
Explanation of Changes
🤖 Generated by Copilot at 25d6fd9
reset
function to restore original style properties of an element after a transition (link)reset
function when enter or leave transition is cancelled to ensure consistent state of the element (link, link)enterCancelled
andleaveCancelled
hooks to handle transition cancellation events (link, link)