aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/menu.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-01 00:54:19 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-15 00:38:40 +0200
commitbb49bd794bc8ea4238162725b518fb46234f3cf9 (patch)
treedb7b6152daac9f2c6b5fd051ab5d3b7ec7382791 /ui/widgets/menu.js
parentdaa6fb55b35065c49c0ffc879c94627bbf85404c (diff)
downloadjquery-ui-bb49bd794bc8ea4238162725b518fb46234f3cf9.tar.gz
jquery-ui-bb49bd794bc8ea4238162725b518fb46234f3cf9.zip
All: Drop support for IE & some other browsers (but mostly IE)
Closes gh-2249
Diffstat (limited to 'ui/widgets/menu.js')
-rw-r--r--ui/widgets/menu.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/widgets/menu.js b/ui/widgets/menu.js
index 1ef4b8a3d..f3fdc82c8 100644
--- a/ui/widgets/menu.js
+++ b/ui/widgets/menu.js
@@ -26,7 +26,6 @@
"jquery",
"../keycode",
"../position",
- "../safe-active-element",
"../unique-id",
"../version",
"../widget"
@@ -87,7 +86,7 @@ return $.widget( "ui.menu", {
},
"click .ui-menu-item": function( event ) {
var target = $( event.target );
- var active = $( $.ui.safeActiveElement( this.document[ 0 ] ) );
+ var active = $( this.document[ 0 ].activeElement );
if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) {
this.select( event );
@@ -131,7 +130,7 @@ return $.widget( "ui.menu", {
this._delay( function() {
var notContained = !$.contains(
this.element[ 0 ],
- $.ui.safeActiveElement( this.document[ 0 ] )
+ this.document[ 0 ].activeElement
);
if ( notContained ) {
this.collapseAll( event );