Skip to content

Commit 3560274

Browse files
author
Gabriel Schulhof
committed
Textinput: Only _destroy() clearButton when present
Closes jquery-archivegh-7568 Fixes jquery-archivegh-7567
1 parent 5197c10 commit 3560274

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
@@ -127,7 +127,9 @@ define( [
127127

128128
_destroy: function() {
129129
this._super();
130-
this._destroyClear();
130+
if ( this.options.clearBtn && !this.options.enhanced ) {
131+
this._destroyClear();
132+
}
131133
}
132134

133135
});

0 commit comments

Comments
 (0)