Explorar o código

Merge branch 'feat/outliner-core' of github.com:logseq/logseq into feat/outliner-core

Tienson Qin %!s(int64=4) %!d(string=hai) anos
pai
achega
a1bcec8e3b
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/main/frontend/ui/date_picker.cljs

+ 5 - 1
src/main/frontend/ui/date_picker.cljs

@@ -206,26 +206,30 @@
 (defn shortcut-prev-day
   [_state e]
   (when-not (input-or-select?)
+    (util/stop e)
     (swap! *internal-model inc-date -1)))
 
 (defn shortcut-next-day
   [_state e]
   (when-not (input-or-select?)
+    (util/stop e)
     (swap! *internal-model inc-date 1)))
 
 (defn shortcut-prev-week
   [_state e]
   (when-not (input-or-select?)
+    (util/stop e)
     (swap! *internal-model inc-week -1)))
 
 (defn shortcut-next-week
   [_state e]
   (when-not (input-or-select?)
+    (util/stop e)
     (swap! *internal-model inc-week 1)))
 
 (rum/defc date-picker < rum/reactive
   (mixins/shortcuts
-   #(shortcut/install-shortcut! % {:prevent-default? true})
+   #(shortcut/install-shortcut! % {})
    :shortcut-listener/date-picker
    {:date-picker/complete shortcut-complete
     :date-picker/prev-day shortcut-prev-day