Replies: 1 comment
-
|
PrimeVue Dialog auto focus the first action button in header. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Similar to the existing 'after-hide' event it would be nice to have 'after-show' event.
For our specific use case, we have a wrapper component for Dialog and would like to programmatically focus on the first input element after the dialog is shown instead of adding the autofocus attribute to each input in each dialog. As it is right now, we can't use the 'show' event because the Dialog's focus() method gets called after $emit('show') and without specifying autofocus attribute the dialog autofocuses on header buttons, which in our case is undesired (and there's no way to turn off autofocusing).
I'm sure it would also benefit other scenarios when one needs to run some code after the dialog opens when the 'show' event doesn't exactly cut it.
Beta Was this translation helpful? Give feedback.
All reactions