enhance: clear text selection when blocks are selected

pull/2854/head^2
Tienson Qin 2021-09-21 13:12:21 +08:00
parent 88d4dea61f
commit 9dce190204
2 changed files with 3 additions and 3 deletions

View File

@ -1787,7 +1787,8 @@
(assoc mouse-down-key (fn [e] (assoc mouse-down-key (fn [e]
(block-content-on-mouse-down e block block-id properties content format edit-input-id))))] (block-content-on-mouse-down e block block-id properties content format edit-input-id))))]
[:div.block-content.inline [:div.block-content.inline
(cond-> {:id (str "block-content-" uuid)} (cond-> {:id (str "block-content-" uuid)
:on-mouse-up util/clear-selection!}
(not slide?) (not slide?)
(merge attrs)) (merge attrs))

View File

@ -15,8 +15,7 @@
(let [roam-importing? (rum/react *roam-importing?) (let [roam-importing? (rum/react *roam-importing?)
opml-importing? (rum/react *opml-importing?)] opml-importing? (rum/react *opml-importing?)]
[:div#import [:div#import
[:h1.title "Import JSON from Roam Research (experimental)"] [:h1.title "Import JSON from Roam Research"]
[:p.text-sm.mb-8 "Export to Roam Research is coming!"]
[:input [:input
{:id "import-roam" {:id "import-roam"