Permalink
Browse files

fix: Drawer closes now like expected (Styleguide)

  • Loading branch information...
MikeMitterer committed Feb 24, 2015
1 parent df1d34c commit 23a7c58f49dda390205ef6cb5a3e431054187fda
Showing with 2 additions and 2 deletions.
  1. +1 −1 example/main.dart
  2. +1 −1 lib/src/components/MaterialLayout.dart
View
@@ -76,7 +76,7 @@ void loadDemos() {
navAnchor.onClick.listen((final html.MouseEvent event) {
print("Test");
if(getDrawer() != null) {
- getDrawer().classes.toggle("is-visible");
+ getDrawer().classes.remove("is-visible");
}
});
@@ -184,7 +184,7 @@ class MaterialLayout extends WskComponent {
_logger.info("Check: .${_cssClasses.NAVI_LINK}");
element.querySelectorAll(".${_cssClasses.NAVI_LINK}").forEach((final html.Element element) {
_logger.info("click $element");
- element.onClick.listen( _drawerToggleHandler );
+ element.onClick.listen( (_) => drawer.classes.remove(_cssClasses.DRAWER_OPEN_CLASS) );
});
final html.DivElement obfuscator = new html.DivElement();

0 comments on commit 23a7c58

Please sign in to comment.