diff --git a/src/customizations/volto/components/theme/Navigation/Navigation.jsx b/src/customizations/volto/components/theme/Navigation/Navigation.jsx index b0c76a2..c6014ed 100644 --- a/src/customizations/volto/components/theme/Navigation/Navigation.jsx +++ b/src/customizations/volto/components/theme/Navigation/Navigation.jsx @@ -74,16 +74,6 @@ class Navigation extends Component { }; } - /** - * Component will mount - * @method componentWillMount - * @returns {undefined}getBasePath - */ - componentDidMount() { - // this.props.getNavigation(getBaseUrl(this.props.pathname), 2); - this.closeMobileMenu(); - } - /** * Component will receive props * @method componentWillReceiveProps @@ -120,6 +110,7 @@ class Navigation extends Component { componentDidMount() { document.addEventListener('mousedown', this.handleClickOutside, false); + this.closeMobileMenu(); } componentWillUnmount() {