Attempt to fix drawer

This commit is contained in:
Matthew Grove
2018-11-13 20:01:32 +00:00
parent 93f42f122d
commit 967a5dcf5c

View File

@@ -4,7 +4,7 @@ $(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 = new mdc.drawer.MDCDrawer.attachTo(document.querySelector('.mdc-drawer')); const drawer = new mdc.drawer.MDCDrawer.attachTo($(".mdc-drawer"));
const topAppBar = new 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;