Browse Source

enhance(mobile): just close left sidebar when editing mode from keyboard rising

charlie 3 years ago
parent
commit
ce545f41d1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/handler/events.cljs

+ 2 - 1
src/main/frontend/handler/events.cljs

@@ -223,7 +223,8 @@
 
 
 (defmethod handle :mobile/keyboard-will-show [[_]]
-  (when (state/get-left-sidebar-open?)
+  (when (and (state/get-left-sidebar-open?)
+             (state/editing?))
     (state/set-left-sidebar-open! false)))
 
 (defmethod handle :mobile/keyboard-did-show [[_]]