Skip to content

Commit

Permalink
Completer.js: Don't reset upon autosubmits
Browse files Browse the repository at this point in the history
fixes #152
  • Loading branch information
nilmerg committed Jun 22, 2023
1 parent 5315e79 commit 9727960
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions asset/js/widget/Completer.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,10 @@ define(["../notjQuery"], function ($) {
*/

onSubmit(event) {
// Reset all states, the user is about to navigate away
this.reset();
if (! event.detail || ! event.detail.submittedBy) {
// Reset all states, the user is about to navigate away
this.reset();
}
}

onFocusOut(event) {
Expand Down

0 comments on commit 9727960

Please sign in to comment.