Skip to content

Commit

Permalink
DropDownEditor: Detach focus events before attaching new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Dec 12, 2024
1 parent a5a491c commit 3a9d97d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ const DropDownEditor = TextBox.inherit({
},

_render() {
this._detachFocusEvents();

this.callBase();

this._renderOpenHandler();
Expand Down Expand Up @@ -291,7 +293,9 @@ const DropDownEditor = TextBox.inherit({
_renderField() {
const fieldTemplate = this._getFieldTemplate();

fieldTemplate && this._renderTemplatedField(fieldTemplate, this._fieldRenderData());
if (fieldTemplate) {
this._renderTemplatedField(fieldTemplate, this._fieldRenderData());
}
},

_renderPlaceholder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,11 @@ const TextEditorBase = Editor.inherit({
this._renderStylingMode();
this._renderInputType();
this._renderPlaceholder();

this._renderProps();

this.callBase();

this._renderValue();

this._renderLabel();
},

Expand Down

0 comments on commit 3a9d97d

Please sign in to comment.