(js) Fix automatic close of sidenav

This commit is contained in:
Francis Lachapelle committed 2017-10-12 10:16:51 -04:00
1 parent 6a661264f6
commit e5f9f3383a
1 file changed
+1 -1
@@ -43,7 +43,7 @@
this.go = function(module, form) {
if (form.$valid) {
// Close sidenav on small devices
if ($mdMedia('xs'))
if (!$mdMedia('gt-sm'))
$mdSidenav('left').close();
$state.go('preferences.' + module);
}