]> source.dussan.org Git - jquery-ui.git/commit
Dialog: Workaround broken focus re-triggering in jQuery 3.4/3.5
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Sun, 21 Feb 2021 23:02:02 +0000 (00:02 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 23:02:02 +0000 (00:02 +0100)
commit834ee5f7cfb621b5f75292915a00319927a9a6d0
tree2de78ea42b2a31f91028becb68c7d332d83b9908
parent5b5fda7cd24e6265814ddda23b9af2ceef8bcd99
Dialog: Workaround broken focus re-triggering in jQuery 3.4/3.5

Focus re-triggering in jQuery 3.4/3.5 makes the original element
have its focus event propagated last, breaking the re-targeting.
Trigger focus in a delay in addition if needed to avoid the issue.

This fixes the "interaction between overlay and other dialogs" core dialog
test when tested against jQuery 3.4/3.5.

Closes gh-1946
Ref jquery/jquery#4382
ui/widgets/dialog.js