Closed ebatgerel closed 6 years ago
When i use the app-layout throws error to console. But it works good before.
Here is my html structure
<app-drawer slot="drawer" swipe-open id="left"> <section> <div id="dashboard" on-click="selectDashboard">Dashboard</div> <div id="users" on-click="selectUsers">Users</div> <div id="categoryTree"></div> </section> </app-drawer>
onLayoutChange(wide) { let drawer = this.$.drawer; if (wide && drawer.opened) { drawer.opened = false; } }
Should work
Cannot read property 'opened' of undefined
<app-drawer slot="drawer" swipe-open id="left"> means drawer = this.$.left; ($ node finding maps to element id).
<app-drawer slot="drawer" swipe-open id="left">
drawer = this.$.left;
$
Description
When i use the app-layout throws error to console. But it works good before.
Here is my html structure
Expected outcome
Should work
Actual outcome
Cannot read property 'opened' of undefined
Live Demo
Browsers Affected