Skip to content

Commit 70c4b34

Browse files
author
Ruslan Farkhutdinov
committed
Revert "feat(toolbar && menu): Hide before element in Submenu in Generic"
This reverts commit 29ea45d.
1 parent 67fb27d commit 70c4b34

File tree

2 files changed

+1
-10
lines changed
  • packages
    • devextreme-scss/scss/widgets/generic/htmlEditor
    • devextreme/js/__internal/ui/html_editor/modules

2 files changed

+1
-10
lines changed

packages/devextreme-scss/scss/widgets/generic/htmlEditor/_index.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,6 @@
211211
border-top-color: $htmleditor-toolbar-border-color;
212212
}
213213

214-
.dx-htmleditor-toolbar-ai-overlay-content {
215-
.dx-context-menu-content-delimiter::before {
216-
content: none;
217-
}
218-
}
219-
220214
.dx-resize-frame {
221215
border-color: $htmleditor-resize-frame-border-color;
222216

packages/devextreme/js/__internal/ui/html_editor/modules/m_toolbar.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
isDefined, isEmptyObject, isObject, isString,
1616
} from '@js/core/utils/type';
1717
import type { AICommandName, AICustomCommand, AIToolbarItem } from '@js/ui/html_editor';
18-
import type { ContentReadyEvent, ItemClickEvent, SubmenuShownEvent } from '@js/ui/menu';
18+
import type { ContentReadyEvent, ItemClickEvent } from '@js/ui/menu';
1919
import type { Item } from '@js/ui/toolbar';
2020
import Toolbar from '@js/ui/toolbar';
2121
import errors from '@js/ui/widget/ui.errors';
@@ -487,9 +487,6 @@ if (Quill) {
487487
const options = {
488488
dataSource,
489489
disabled: isMenuDisabled,
490-
onSubmenuShown: ({ submenuContainer }: SubmenuShownEvent): void => {
491-
$(submenuContainer).parent().addClass(TOOLBAR_AI_OVERLAY_CONTENT_CLASS);
492-
},
493490
onContentReady: (e: ContentReadyEvent): void => {
494491
const $item = $(e.element).find(`.${DX_MENU_ITEM_CLASS}`).first();
495492
$item.attr('aria-label', localizationMessage.format('dxHtmlEditor-aiToolbarItemAriaLabel'));

0 commit comments

Comments
 (0)