From 05b7c903c0b098bc737f18e517b9bf815914c551 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Sun, 9 Feb 2025 10:13:24 +0100 Subject: [PATCH] fix(select): update empty value handling --- source/components/form/select.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/components/form/select.mjs b/source/components/form/select.mjs index 50e56e2d3..d77ba6073 100644 --- a/source/components/form/select.mjs +++ b/source/components/form/select.mjs @@ -2290,12 +2290,13 @@ function isValueIsEmptyThenGetNormalize(value) { function setSelection(selection) { const self = this; + selection = isValueIsEmptyThenGetNormalize.call(this, selection); + if (isString(selection) || isInteger(selection)) { const result = convertValueToSelection.call(this, selection); selection = result?.selection; } - selection = isValueIsEmptyThenGetNormalize.call(this, selection); validateArray(selection); let resultSelection = []; -- GitLab