Forcing the core-drawer-panel to be closed on star

2019-09-16 12:34发布

I'm using core-drawer-panel to show a left-hand menu and right-hand content. I want the menu to be closed when I open the page by default. I tried setting responsiveWidth to 9999px, which works, but the drawer is quickly shown, then hidden, every time I go to the page. Is there a style I can apply or JS I can run before polymer is "stable" to get it to hide the menu?

标签: polymer
1条回答
成全新的幸福
2楼-- · 2019-09-16 12:52

Ah, this is fixed in 0.2.4: https://github.com/Polymer/core-drawer-panel/commit/68a2fc20235d5dad52cee806d29a76d9627b0ab8 but I was only using 0.2.3. Thanks for playing.

查看更多
登录 后发表回答