feat(VAlert): add duration prop for auto-dismissal#22952
Closed
sridhar-3009 wants to merge 5 commits into
Closed
Conversation
J-Sek
requested changes
Jun 28, 2026
J-Sek
left a comment
Contributor
There was a problem hiding this comment.
Would it make sense to rename as timeout and extract reusable composable that can be aslo used for VSnackbar?
…osable - Rename duration prop to timeout to match VSnackbar naming - Extract reusable useTimeout composable shared by VAlert and VSnackbar - Rename example file from prop-duration to prop-timeout
Contributor
Author
|
@J-Sek updated |
|
This one was earlier #22947 |
Contributor
Author
|
Closing in favour of #22947 by @eldardada which was submitted earlier and has a more complete implementation (pause on hover/focus, WCAG 2.2.1, useAutoDismiss composable shared with VSnackbar). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #20409
Adds a
durationprop tov-alertthat automatically dismisses the alert after the specified number of milliseconds (default:-1= disabled).The timer is cleaned up on component destroy and restarts if
durationormodelValuechanges.