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

pull/3547/head
charlie 2021-12-22 19:40:01 +08:00
parent 1b879d49e5
commit ce545f41d1
1 changed files with 2 additions and 1 deletions

View File

@ -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 [[_]]