Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 151ab0b

Browse files
author
Gabriel Schulhof
committed
Textinput: Only _destroy() clearButton when present
Fixes gh-7567
1 parent cb9112a commit 151ab0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/widgets/forms/clearButton.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ define( [
122122

123123
_destroy: function() {
124124
this._super();
125-
this._destroyClear();
125+
if ( this.options.clearBtn && !this.options.enhanced ) {
126+
this._destroyClear();
127+
}
126128
}
127129

128130
});

0 commit comments

Comments
 (0)