Skip to content
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

[2.x] Add ability to focus first modal element on opening #814

Merged
merged 2 commits into from
Jun 24, 2021
Merged

[2.x] Add ability to focus first modal element on opening #814

merged 2 commits into from
Jun 24, 2021

Conversation

DanielSpravtsev
Copy link
Contributor

@DanielSpravtsev DanielSpravtsev commented Jun 24, 2021

This PR adds ability to use focusable attribute for focusing on first modal focusable element.
<x-jet-dialog-modal wire:model="model" focusable>
It's much faster, than tapping to first element on every modal open and makes user experience smoother and easier.
Otherwise, you can continue using current behaviour without breaking anything.

@DanielSpravtsev DanielSpravtsev changed the title [2.x] Add ability to focus first modal element [2.x] Add ability to focus first modal element on opening Jun 24, 2021
@taylorotwell taylorotwell merged commit 4259328 into laravel:2.x Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants