We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e8867c commit 0459040Copy full SHA for 0459040
asset/js/widget/Completer.js
@@ -290,6 +290,10 @@ define(["../notjQuery"], function ($) {
290
input.title = data[name];
291
}
292
293
+
294
+ if (this.shouldAutoSubmit()) {
295
+ $(input.form).trigger('submit', { submittedBy: input });
296
+ }
297
298
299
this.hideSuggestions();
@@ -456,6 +460,10 @@ define(["../notjQuery"], function ($) {
456
460
457
461
458
462
463
+ shouldAutoSubmit() {
464
+ return 'autoSubmit' in this.input.dataset;
465
466
459
467
/**
468
* Event listeners
469
*/
0 commit comments