You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can we set focus on a select component by code? (Primevue v4)
I tried
document.getElementById( field ).focus();
fieldref.value?.$el?.querySelector("id")?.focus(); // select has a ref fieldref
fieldref.value?.$el?.querySelector("inputId")?.focus();
but with no success. Is there any way to do this?
Thank you in advance
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How can we set focus on a select component by code? (Primevue v4)
I tried
document.getElementById( field ).focus();
fieldref.value?.$el?.querySelector("id")?.focus(); // select has a ref fieldref
fieldref.value?.$el?.querySelector("inputId")?.focus();
but with no success. Is there any way to do this?
Thank you in advance
Norberto // freelancer
Beta Was this translation helpful? Give feedback.
All reactions