Fixed an issue which would cause the navigation container to stay at expanded height after closing a submenu by clicking the main item.