Browse Source

fix: deadline && scheduled not working

Tienson Qin 4 years ago
parent
commit
b5d9200f82

+ 1 - 1
src/main/frontend/components/datetime.cljs

@@ -110,7 +110,7 @@
                                (let [{:keys [block typ show?]} block-data
                                      block-id (or (:block/uuid (state/get-edit-block))
                                                   (:block/uuid block))
-                                     typ (or typ @commands/*current-command)]
+                                     typ (or @commands/*current-command typ)]
                                  (editor-handler/set-block-timestamp! block-id
                                                                       typ
                                                                       text)

+ 4 - 1
src/main/frontend/handler/editor.cljs

@@ -1418,7 +1418,10 @@
        (when (and (if check-idle? (state/input-idle? repo) true)
                   (not (state/get-editor-show-page-search?))
                   (not (state/get-editor-show-page-search-hashtag?))
-                  (not (state/get-editor-show-block-search?)))
+                  (not (state/get-editor-show-block-search?))
+                  (not (state/get-editor-show-date-picker?))
+                  (not (state/get-editor-show-template-search?))
+                  (not (state/get-editor-show-input)))
          (state/set-editor-op! :auto-save)
          (try
            (let [input-id (state/get-edit-input-id)