Skip to content

Commit

Permalink
fix: autocomplete items should be hidden using display: none (argopro…
Browse files Browse the repository at this point in the history
…j#123)

Signed-off-by: Alexander Matyushentsev <[email protected]>
  • Loading branch information
Alexander Matyushentsev authored Aug 10, 2021
1 parent 9ebea33 commit e81faeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/components/autocomplete/autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const RenderAutocomplete = (
<ThemeDiv
className='autocomplete__items'
style={{
visibility: !showSuggestions || (props.items || []).length < 1 ? 'hidden' : 'visible',
display: !showSuggestions || (props.items || []).length < 1 ? 'none' : 'block',
top: position.top,
left: position.left,
}}
Expand Down

0 comments on commit e81faeb

Please sign in to comment.