don't backfill tags, close dropdown on tab

This commit is contained in:
Eric Bailey
2023-10-19 16:45:22 -04:00
parent 2d62a4942a
commit d93587aeef
2 changed files with 2 additions and 5 deletions
@@ -120,6 +120,7 @@ export function TagInput({
if (key === 'Backspace' && value === '') {
addTags(tags.slice(0, -1))
closeDropdownAndReset()
} else if (key === ' ') {
e.preventDefault() // prevents an additional space on web
addTagAndReset(value)