Attempt to fix drawer

This commit is contained in:
Matthew Grove
2018-11-13 19:57:58 +00:00
parent 392767369e
commit 93f42f122d

View File

@@ -4,8 +4,8 @@ $(document).ready(function(){
// initiate MDC drawer // initiate MDC drawer
// const drawer = new mdc.drawer.MDCDrawer.attachTo(document.querySelector('.mdc-drawer')); // const drawer = new mdc.drawer.MDCDrawer.attachTo(document.querySelector('.mdc-drawer'));
const drawer = mdc.drawer.MDCDrawer.attachTo(document.querySelector('.mdc-drawer')); const drawer = new mdc.drawer.MDCDrawer.attachTo(document.querySelector('.mdc-drawer'));
const topAppBar = mdc.topAppBar.MDCTopAppBar.attachTo(document.getElementById('app-bar')); const topAppBar = new mdc.topAppBar.MDCTopAppBar.attachTo(document.getElementById('app-bar'));
topAppBar.listen('MDCTopAppBar:nav', () => { topAppBar.listen('MDCTopAppBar:nav', () => {
drawer.open = !drawer.open; drawer.open = !drawer.open;
}); });