fix: re-add clearing tags ref on every render

This commit is contained in:
Antonella Sgarlatta
2021-06-01 12:24:11 -03:00
parent bea4e00b9d
commit 570a7ed587

View File

@@ -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) {