Skip to content

Commit f3c9ba3

Browse files
author
marker dao ®
committed
revert(knockout)
1 parent 1db4aa1 commit f3c9ba3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/devextreme/js/__internal/ui/popover/m_popover.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ class Popover<
193193
const { visible } = this.option();
194194

195195
const overlayStack = this._overlayStack();
196+
// @ts-ignore this
196197
const isTopOverlay = overlayStack[overlayStack.length - 1] === this;
197198

198199
if (normalizeKeyName(e) === ESC_KEY_NAME && visible && isTopOverlay) {

packages/devextreme/js/__internal/ui/text_box/m_text_editor.base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,8 @@ class TextEditorBase<
678678
}
679679

680680
const $input = this._input();
681-
682-
const { placeholder } = this.option();
681+
// There should be no destructuring, because of knockout limitations
682+
const placeholder = this.option('placeholder');
683683

684684
const placeholderAttributes = {
685685
id: placeholder ? `dx-${new Guid()}` : undefined,

0 commit comments

Comments
 (0)