From d4fafb96c029037a6bee5ac18ae1b51c5678b91a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 6 May 2024 15:09:13 +0200 Subject: [PATCH] BaseInput: Only set `skipSaveOnBlur` if it's reset If the DOM isn't updated, it's not going to be reset. --- asset/js/widget/BaseInput.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asset/js/widget/BaseInput.js b/asset/js/widget/BaseInput.js index 5bad5ab2..eca7371f 100644 --- a/asset/js/widget/BaseInput.js +++ b/asset/js/widget/BaseInput.js @@ -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); }