fix: reload tabIndex after tags expansion

This commit is contained in:
Antonella Sgarlatta
2021-06-02 18:59:27 -03:00
parent 595b44dfee
commit f9c2b19eac
2 changed files with 5 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ type Props = {
export const NoteTag: FunctionalComponent<Props> = ({ appState, tag }) => {
const {
tags,
tagsContainerExpanded,
tagsContainerMaxWidth,
} = appState.activeNote;
@@ -48,7 +49,7 @@ export const NoteTag: FunctionalComponent<Props> = ({ appState, tag }) => {
useEffect(() => {
reloadOverflowed();
}, [reloadOverflowed, tags, tagsContainerMaxWidth]);
}, [reloadOverflowed, tags, tagsContainerExpanded, tagsContainerMaxWidth]);
const contextMenuListener = (event: MouseEvent) => {
event.preventDefault();