docute
docute copied to clipboard
Hamburger menu not working when sidebar is false
An error can be found in browser dev-tool console:
TypeError: Cannot read property 'classList' of null
at a.
Can you provide the repro steps?
The HTML below is used, which sets the sidebar to be false.
<html>
<head>...</head>
<body>
<div id="app"></div>
<script src="https://unpkg.com/docute@3/dist/docute.js"></script>
<script>
docute.init({
sidebar: false,
nav: [
{title: 'Home', path: '/'},
{title: 'Learn', path: '/git'},
{title: 'Github', path: 'https://github.com/yysun/git-tools'}
]
})
</script>
</body>
</html>
After loaded in chrome, make the window smaller util the hamburger menu shows up on top of screen. Then click the hamburger menu. Nothing changes in UI, but an error shows up in console.

