Skip to content

Commit

Permalink
fix: re-add clearing tags ref on every render
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed Jun 1, 2021
1 parent bea4e00 commit 570a7ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/components/NoteTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const NoteTags = observer(({ application, appState }: Props) => {
const tagsContainerRef = useRef<HTMLDivElement>();
const tagsRef = useRef<HTMLButtonElement[]>([]);
const overflowButtonRef = useRef<HTMLButtonElement>();
tagsRef.current = [];

useCloseOnClickOutside(tagsContainerRef, (expanded: boolean) => {
if (overflowButtonRef.current || tagsContainerExpanded) {
Expand Down

0 comments on commit 570a7ed

Please sign in to comment.