preactjs-templates / material

The material design `preact-cli` template
MIT License
44 stars 20 forks source link

Setting state in closeDrawer()? #20

Open dandv opened 5 years ago

dandv commented 5 years ago

This looks odd. Should be in the constructor.

dandv commented 5 years ago

Also, the code is quite different from what's at https://material.preactjs.com/component/drawer/

prateekbh commented 5 years ago

oh shucks! you are right.