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 7, 2024
1 parent 6c9b983 commit 56b58ae
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 56b58ae

Please sign in to comment.