1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

fixed tag autocomplete behaviour

This commit is contained in:
Fedor Katurov 2022-01-09 19:55:02 +07:00
parent 9dc83b0db8
commit 85d20e5009
8 changed files with 25 additions and 20 deletions

View file

@ -132,8 +132,9 @@ const TagInput: FC<IProps> = ({ exclude, onAppend, onClearTag, onSubmit }) => {
/>
</TagWrapper>
{focused && input?.length > 0 && ref.current && (
{!!ref.current && (
<TagAutocomplete
visible={focused && input?.length > 0}
exclude={exclude}
input={ref.current}
onSelect={onAutocompleteSelect}