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 Jun 12, 2024
1 parent 6319dd7 commit 1d221e9
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 1d221e9

Please sign in to comment.