From 7192be230fb0061b31fc3bbdabc679b0aad53563 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 26 Sep 2023 14:55:07 -0500 Subject: [PATCH] remove half-baked onBlur handling --- src/view/com/composer/TagInput.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/view/com/composer/TagInput.tsx b/src/view/com/composer/TagInput.tsx index b873e0edf1..b8a18afe67 100644 --- a/src/view/com/composer/TagInput.tsx +++ b/src/view/com/composer/TagInput.tsx @@ -100,15 +100,6 @@ export function TagInput({ setValue(v) }, []) - const onBlur = React.useCallback(() => { - const tag = sanitize(value) - - if (tag.length > 0) { - handleChangeTags(uniq([...tags, tag]).slice(0, max)) - setValue('') - } - }, [value, tags, max, handleChangeTags]) - const removeTag = React.useCallback( (tag: string) => { handleChangeTags(tags.filter(t => t !== tag)) @@ -135,7 +126,6 @@ export function TagInput({ onKeyPress={onKeyPress} onSubmitEditing={onSubmitEditing} onChangeText={onChangeText} - onBlur={onBlur} blurOnSubmit={false} style={[styles.input, pal.textLight]} placeholder="Enter a tag and press enter"