always trim editableText from itemBox on blur (#5081)

So that whitespaces are removed even if the itemBox
does not refresh.

Fixes: #5080
This commit is contained in:
abaevbog 2025-03-05 15:03:03 -08:00 committed by Dan Stillman
parent 85b97f82e6
commit b250aed79d

View file

@ -2198,6 +2198,8 @@
textbox.setAttribute("min-lines", 1);
}
var value = textbox.value.trim();
// Remove trailing whitespaces from editable-text in case itemBox is not refreshed
textbox.value = value;
var [field, creatorIndex, creatorField] = fieldName.split('-');