diff --git a/src/client/components/main_layout/PerspectiveTabs.js b/src/client/components/main_layout/PerspectiveTabs.js index d9538c1e2ec3830eb2af8a1c5c3ebe61b2e8990a..075d5005c89924944d78ad8670c32b6c64e7e8a0 100644 --- a/src/client/components/main_layout/PerspectiveTabs.js +++ b/src/client/components/main_layout/PerspectiveTabs.js @@ -35,6 +35,7 @@ const PerspectiveTabs = props => { // "MUI: The `value` provided to the Tabs component is invalid. // The Tab with this `value` ("0") is not part of the document layout. // Make sure the tab item is present in the document or that it's not `display: none`."" + // https://github.com/mui-org/material-ui/issues/29209 const timer = setTimeout(() => setCurrentTab(pathnameToTabValue(location, tabs)), 1000) // clear timeout when component unmounts @@ -45,8 +46,9 @@ const PerspectiveTabs = props => { [location] ) + // always deactivate tabs, until the useEffect hook sets the value const handleChange = (event, newValue) => { - setCurrentTab(newValue) + setCurrentTab(false) } return (