-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Blazor: Focus the first input when opening a modal #5547
Comments
@hikalkan I have several ideas and I would like your opinion.
Example
Example
|
PS. we already have a |
Modals are a little problematic since they are always loaded on the page so we cannot use page-load to focus the input. SO for modals I propose:
|
@cotur and @ilkayilknur I would also like your feedback on this if possible |
|
Is it possible to write something like that? <TextEdit AutoFocus="true"/> I also like the first declarative approach. Honestly, I wouldn't say I like giving names to the components and pass them to the other components. This makes code more complicated. |
I suppose |
@ilkayilknur
|
🤔 Maybe when I do this |
This looks like the best way. |
I agree, and I will try and see how it goes. |
I made a quick prototype and
|
For large screens, because it can be problem for mobile devices. It would be good if we can make this automatic out of the box.
The text was updated successfully, but these errors were encountered: