Skip to content

Commit

Permalink
BaseInput: Only set skipSaveOnBlur if it's reset
Browse files Browse the repository at this point in the history
If the DOM isn't updated, it's not going to be reset.
  • Loading branch information
nilmerg committed May 6, 2024
1 parent c42e65c commit 424cafd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asset/js/widget/BaseInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ define(["../notjQuery", "Completer"], function ($, Completer) {
// Cut the term's data
let [termData] = this.usedTerms.splice(termIndex, 1);

// Avoid saving the term, it's removed after all
label.firstChild.skipSaveOnBlur = true;

if (updateDOM) {
// Avoid saving the term, it's removed after all
label.firstChild.skipSaveOnBlur = true;

// Remove it from the DOM
this.removeRenderedTerm(label);
}
Expand Down

0 comments on commit 424cafd

Please sign in to comment.