-
Notifications
You must be signed in to change notification settings - Fork 101
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
Focus on inputText with material css. #132
Comments
Hi, unfortunately the material inputs are processed on page load (see here) hence the initial focus gets lost. The only workaround I can think now is to set the focus after an initial delay:
|
I know this issue is old, but i used this workaround in a external JS file:
with this, the |
Hey @lfpaz, can you open a PR? I'm trying to get the project back on track by updating to the latest PrimeFaces and would be nice to incorporate this fix. Thank you in advance! |
@rmpestano i will open in next days. I'm busy now with the preparations of birth of my son. |
Thanks @lfpaz! No rush as I'm also quite busy here. Cheers! |
Issue Overview
How to set a focus to a p:inputText with material css.
Current Behaviour
Cursor not in inputText
Expected Behaviour
cursor in inputText when the page is loaded.
How to reproduce
Just add <p:focus for="email"/> to login starter page (material).
Additional Information
The text was updated successfully, but these errors were encountered: