Dependency has been added tot he useeffect for tabs to avoid rerendering continuosly (#1682)
This commit is contained in:
parent
6af1925d15
commit
05f3bef5b9
|
@ -92,7 +92,7 @@ function TabNav({ tab, active, tabKind }: { tab?: Tab; active: boolean; tabKind?
|
||||||
if (active && focusTab.current) {
|
if (active && focusTab.current) {
|
||||||
focusTab.current.focus();
|
focusTab.current.focus();
|
||||||
}
|
}
|
||||||
});
|
}, [active]);
|
||||||
return (
|
return (
|
||||||
<li
|
<li
|
||||||
onMouseOver={() => setHovering(true)}
|
onMouseOver={() => setHovering(true)}
|
||||||
|
|
Loading…
Reference in New Issue