mirror of
https://github.com/zotero/zotero.git
synced 2026-09-17 23:51:18 +00:00
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:
parent
85b97f82e6
commit
b250aed79d
1 changed files with 2 additions and 0 deletions
|
|
@ -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('-');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue