Skip to content

Commit

Permalink
Core: fix textbox hanging test (blur)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanblinov2k17 committed Oct 11, 2024
1 parent ccd66d3 commit 5519d8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/devextreme/js/__internal/ui/editor/m_editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Guid from '@js/core/guid';
import $ from '@js/core/renderer';
import Callbacks from '@js/core/utils/callbacks';
import { noop } from '@js/core/utils/common';
import { resetActiveElement } from '@js/core/utils/dom';
import { extend } from '@js/core/utils/extend';
import { hasWindow } from '@js/core/utils/window';
import EventsEngine from '@js/events/core/events_engine';
Expand All @@ -12,6 +11,8 @@ import ValidationEngine from '@js/ui/validation_engine';
import ValidationMessage from '@js/ui/validation_message';
import Widget from '@js/ui/widget/ui.widget';

import domUtils from '../../core/utils/m_dom';

const INVALID_MESSAGE_AUTO = 'dx-invalid-message-auto';
const READONLY_STATE_CLASS = 'dx-state-readonly';
const INVALID_CLASS = 'dx-invalid';
Expand Down Expand Up @@ -389,7 +390,7 @@ const Editor = Widget.inherit({

blur() {
if (this._hasActiveElement()) {
resetActiveElement();
domUtils.resetActiveElement();
}
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import consoleUtils from 'core/utils/console';
import { normalizeKeyName } from 'events/utils/index';
import { getWidth, implementationsMap } from 'core/utils/size';

import TextEditor from 'ui/text_box/ui.text_editor';
import TextEditor from '__internal/ui/text_box/m_text_editor';
import { TextEditorLabel } from '__internal/ui/text_box/m_text_editor.label';

const TEXTEDITOR_CLASS = 'dx-texteditor';
Expand Down

0 comments on commit 5519d8b

Please sign in to comment.