From 570a7ed587843fb69b8a41b8ced051344011454f Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Tue, 1 Jun 2021 12:24:11 -0300 Subject: [PATCH] fix: re-add clearing tags ref on every render --- app/assets/javascripts/components/NoteTags.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/components/NoteTags.tsx b/app/assets/javascripts/components/NoteTags.tsx index 112877416bb..e7d8c623826 100644 --- a/app/assets/javascripts/components/NoteTags.tsx +++ b/app/assets/javascripts/components/NoteTags.tsx @@ -34,6 +34,7 @@ const NoteTags = observer(({ application, appState }: Props) => { const tagsContainerRef = useRef(); const tagsRef = useRef([]); const overflowButtonRef = useRef(); + tagsRef.current = []; useCloseOnClickOutside(tagsContainerRef, (expanded: boolean) => { if (overflowButtonRef.current || tagsContainerExpanded) {