Skip to content

Commit 3b703ec

Browse files
committed
Menu: fix focus logic on submenu hiding (T1304251) (24_2)
1 parent 1b9e22a commit 3b703ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • packages/devextreme/testing/tests/DevExpress.ui.widgets

packages/devextreme/testing/tests/DevExpress.ui.widgets/menu.tests.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
EXPANDER_ICON_STUB_CLASS as TREE_VIEW_EXPANDER_ICON_STUB_CLASS,
2424
ITEM_CLASS as TREE_VIEW_ITEM_CLASS,
2525
} from '__internal/ui/tree_view/m_tree_view.base';
26+
import {shouldSkipOnMobile} from "../../helpers/device";
2627

2728
QUnit.testStart(function() {
2829
const markup =
@@ -2595,8 +2596,11 @@ QUnit.module('Menu tests', {
25952596
});
25962597

25972598
QUnit.test('focusedElement should not be set to main menu item after hiding nested submenu if no item was focused (T1304251)', function(assert) {
2599+
if(shouldSkipOnMobile(assert)) {
2600+
return;
2601+
}
2602+
25982603
const menu = createMenu({
2599-
focusStateEnabled: true,
26002604
items: [{ text: 'Item 1', items: [{ text: 'Item 11' }, { text: 'Item 12' }, { text: 'Item 13' }] }],
26012605
showFirstSubmenuMode: { name: 'onHover', delay: 0 },
26022606
hideSubmenuOnMouseLeave: true

0 commit comments

Comments
 (0)