-
Notifications
You must be signed in to change notification settings - Fork 624
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
feat(Notification): add pauseTimeoutOnHover
prop
#2661
feat(Notification): add pauseTimeoutOnHover
prop
#2661
Conversation
More context, this PR will allow users to perform toasts which don't stop the timeout when we hover. My field name might be improvised, please suggest me better if you have. I really needed this flexibility inside the |
You can add that information here, with the related boolean ui/docs/content/2.components/notification.md Lines 138 to 153 in d0e626c
|
pauseTimeoutOnHover
prop
Thank you boss! |
π Linked issue
Not linked to an issue.
β Type of change
π Description
This pull request includes changes to the
Notification
component to add a new feature and improve user interaction. The most important changes include adding a new prop to control the pause behavior on hover and updating the mouse event handlers to respect this new prop.Enhancements to
Notification
component:src/runtime/components/overlays/Notification.vue
: Added a newpauseTimeoutOnHover
prop to allow control over whether the timeout is paused when the notification is hovered.src/runtime/components/overlays/Notification.vue
: UpdatedonMouseover
andonMouseleave
methods to check the newpauseTimeoutOnHover
prop before pausing or resuming the timer.π Checklist