Browse Source

fix: input link cannot delete

Weihua Lu 4 years ago
parent
commit
dfc4516671
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/state.cljs

+ 2 - 1
src/main/frontend/state.cljs

@@ -417,7 +417,8 @@
 
 (defn editing?
   []
-  (some? (get-edit-input-id)))
+  (let [input (get-input)]
+    (and input (= input (.-activeElement js/document)))))
 
 (defn get-edit-content
   []