File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
felayout_t3kit/dev/js/main/header Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ jQuery(function ($) {
1414 var $dropdownMenuWithColumns = $ ( '.js__dropdown-menu-with-columns .js__main-navigation__item._sub' )
1515
1616 if ( ! touchSupport ) {
17- $dropdownMenuWithColumns . hover ( function ( ) {
18- $ ( this ) . toggleClass ( 'open' )
17+ $dropdownMenuWithColumns . mouseenter ( function ( ) {
18+ $ ( this ) . addClass ( 'open' )
19+ } ) . mouseleave ( function ( ) {
20+ $ ( this ) . removeClass ( 'open' )
1921 } )
2022 }
2123
Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ jQuery(function ($) {
1414 var $dropdownMenuWithColumns = $ ( '.js__dropdown-menu-with-columns .js__main-navigation__item._sub' )
1515
1616 if ( ! touchSupport ) {
17- $dropdownMenuWithColumns . hover ( function ( ) {
18- $ ( this ) . toggleClass ( 'open' )
17+ $dropdownMenuWithColumns . mouseenter ( function ( ) {
18+ $ ( this ) . addClass ( 'open' )
19+ } ) . mouseleave ( function ( ) {
20+ $ ( this ) . removeClass ( 'open' )
1921 } )
2022 }
2123
Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ jQuery(function ($) {
1212 var $dropdownMenuWithColumns = $ ( '.js__dropdown-menu-with-columns .js__main-navigation__item._sub' )
1313
1414 if ( ! touchSupport ) {
15- $dropdownMenuWithColumns . hover ( function ( ) {
16- $ ( this ) . toggleClass ( 'open' )
15+ $dropdownMenuWithColumns . mouseenter ( function ( ) {
16+ $ ( this ) . addClass ( 'open' )
17+ } ) . mouseleave ( function ( ) {
18+ $ ( this ) . removeClass ( 'open' )
1719 } )
1820 }
1921
You can’t perform that action at this time.
0 commit comments