Skip to content

Commit

Permalink
fix(Editable): Fixed Editable Select blur bug
Browse files Browse the repository at this point in the history
  • Loading branch information
giubatt committed Jul 13, 2021
1 parent 46b2170 commit d935c8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/EditableField/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ const EditableFieldSelect = ({
setIsFocused(false)
const toElement = event.relatedTarget

const blurredInside = containerRef.current?.contains(
toElement as Element
)
const blurredInside =
containerRef.current?.contains(toElement as Element) ||
(toElement as Element)?.id?.startsWith("downshift")

if (!blurredInside) {
setIsOpen(false)
Expand Down

0 comments on commit d935c8f

Please sign in to comment.