fix tags input returns [""] instead of [] when empty

This commit is contained in:
2025-05-29 14:35:17 +01:00
parent 0e516f2a1f
commit a202f2c222

View File

@@ -65,6 +65,9 @@ function _TagsInput({ ref }: { ref: React.Ref<TagsInputRef> }) {
useImperativeHandle(ref, () => ({
get tags() {
if (value === "") {
return []
}
return value.trim().split(" ")
},
input: refs.reference.current,