fix(ui): contextmenu for the number list marker

This commit is contained in:
charlie
2023-04-21 16:50:53 +08:00
parent 5ba0a0b0b9
commit 6f6a0023a1

View File

@@ -353,7 +353,8 @@
(mixins/listen state js/window "contextmenu"
(fn [e]
(let [target (gobj/get e "target")
block-id (d/attr target "blockid")
block-el (.closest target ".bullet-container[blockid]")
block-id (some-> block-el (.getAttribute "blockid"))
{:keys [block block-ref]} (state/sub :block-ref/context)
{:keys [page]} (state/sub :page-title/context)]
(cond