-
Notifications
You must be signed in to change notification settings - Fork 301
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
Popup defaultFocus speed #150
Comments
Hi, This is due to waiting for the animation to end, and then the focus is set. You can reduce this by decreasing the In/Out animation duration. For example: .alertify.ajs-in:not(.ajs-hidden) .ajs-dialog,
.alertify.ajs-out.ajs-hidden .ajs-dialog {
animation-duration: 150ms;
} Thanks. |
hi, |
Increase it gradually till you get a duration that best suits your use case. |
ok,
this is not the perfect solution but it will work for some fast typing people. |
Would disabling the animation work better? |
it would work better but not lock better. I do want the animation but i was trying to get a solution where the button get focus from the beggining and not at the end. |
@seltix5 The waiting is required due to |
yes I understand. |
The issue is with releasing the key. If one of the dialog buttons receives focus immediately, it will fire I need to look further into this. |
since is not possible to focus the dialog button from the start, as you correctly said, because its not possible to focus hidden elements, maybe a workaround wold be to blur all focus on promp open |
How about on first show, if the element is focusable , focus it otherwise delay set focus when animation is finished? |
Hi,
When oppening a popup there is a delay between the click and the defaultFocus button to be focused, in a batch work it is not possible to do a quick [click] -> [enter] action because of the delay, resulting on a 2 button press (one by click and the second by enter press on the samme button).
Is there a way to reduce this delay?
thank you!
The text was updated successfully, but these errors were encountered: