We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fbae46 commit f230257Copy full SHA for f230257
app/code/Magento/Search/view/frontend/web/js/form-mini.js
@@ -294,9 +294,10 @@ define([
294
dropdown = $('<ul role="listbox"></ul>'),
295
value = this.element.val();
296
297
- this.submitBtn.disabled = isEmpty(value);
+ this.submitBtn.disabled = true;
298
299
if (value.length >= parseInt(this.options.minSearchLength, 10)) {
300
+ this.submitBtn.disabled = false;
301
$.getJSON(this.options.url, {
302
q: value
303
}, $.proxy(function (data) {
0 commit comments