Skip to content

Commit f230257

Browse files
Fixed issue with search button disabled is not respecting minimum search length
1 parent 7fbae46 commit f230257

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Search/view/frontend/web/js/form-mini.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,10 @@ define([
294294
dropdown = $('<ul role="listbox"></ul>'),
295295
value = this.element.val();
296296

297-
this.submitBtn.disabled = isEmpty(value);
297+
this.submitBtn.disabled = true;
298298

299299
if (value.length >= parseInt(this.options.minSearchLength, 10)) {
300+
this.submitBtn.disabled = false;
300301
$.getJSON(this.options.url, {
301302
q: value
302303
}, $.proxy(function (data) {

0 commit comments

Comments
 (0)