diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2021-04-09 23:36:00 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-05-15 00:38:30 +0200 |
commit | daa6fb55b35065c49c0ffc879c94627bbf85404c (patch) | |
tree | c1c90efc224aa82614758262b4e308cc8354ac65 /ui/widgets/dialog.js | |
parent | ac8b1e4eee8682e6825730c4823036a90031edad (diff) | |
download | jquery-ui-daa6fb55b35065c49c0ffc879c94627bbf85404c.tar.gz jquery-ui-daa6fb55b35065c49c0ffc879c94627bbf85404c.zip |
All: Drop support for jQueries different than the latest for each major
Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4.
Closes gh-2249
Diffstat (limited to 'ui/widgets/dialog.js')
-rw-r--r-- | ui/widgets/dialog.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ui/widgets/dialog.js b/ui/widgets/dialog.js index e04598dcc..cbda81636 100644 --- a/ui/widgets/dialog.js +++ b/ui/widgets/dialog.js @@ -857,8 +857,6 @@ $.widget( "ui.dialog", { return; } - var jqMinor = $.fn.jquery.substring( 0, 4 ); - // We use a delay in case the overlay is created from an // event that we're going to be cancelling (#2804) var isOpening = true; @@ -880,18 +878,6 @@ $.widget( "ui.dialog", { if ( !instance._allowInteraction( event ) ) { event.preventDefault(); instance._focusTabbable(); - - // Support: jQuery >=3.4 <3.7 only - // In jQuery 3.4-3.6, there are multiple issues with focus/blur - // trigger chains or when triggering is done on a hidden element - // at least once. - // Trigger focus in a delay in addition if needed to avoid the issues. - // See https://github.com/jquery/jquery/issues/4382 - // See https://github.com/jquery/jquery/issues/4856 - // See https://github.com/jquery/jquery/issues/4950 - if ( jqMinor === "3.4." || jqMinor === "3.5." || jqMinor === "3.6." ) { - instance._delay( instance._restoreTabbableFocus ); - } } }.bind( this ) ); } |