fix(editor): allow up/down arrows for repeater time selection

This commit is contained in:
Tienson Qin
2020-12-17 19:37:06 +08:00
parent c3538b2268
commit 42967ea782
5 changed files with 26 additions and 12 deletions

View File

@@ -1792,7 +1792,8 @@
(fn [state e]
(when-let [repo (state/get-current-repo)]
(let [blocks (seq (state/get-selection-blocks))]
(if (seq blocks)
(cond
(seq blocks)
(let [ids (map (fn [block] (when-let [id (dom/attr block "blockid")]
(medley/uuid id))) blocks)
ids (->> (mapcat #(let [children (vec (db/get-block-children-ids repo %))]
@@ -1847,6 +1848,11 @@
{:key :block/change
:data (map (fn [block] (assoc block :block/page page)) blocks)}
[[file-path new-content]])))
(gdom/getElement "date-time-picker")
nil
:else
(cycle-collapse! state e))))))
(defn bulk-make-todos