Minor behavior fix

This commit is contained in:
Rainer Simon 2022-09-03 21:13:58 +02:00
parent b80d14f410
commit b92bd8d77c
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ const TagWidget = props => {
props.onAppendBody({ ...draftTag, value: updated }); props.onAppendBody({ ...draftTag, value: updated });
} else if (prev.length > 0 && updated.length === 0) { } else if (prev.length > 0 && updated.length === 0) {
props.onRemoveBody(draftTag); props.onRemoveBody(draftTag);
} else { } else if (prev !== updated) {
props.onUpdateBody(draftTag, { ...draftTag, value: updated }); props.onUpdateBody(draftTag, { ...draftTag, value: updated });
} }
} }