Attempt to fix drawer
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user