mirror of https://github.com/logseq/logseq
fix: stop event when pressing enter or space on a property value
parent
45e5cde3f9
commit
e7562e0853
|
@ -614,6 +614,10 @@
|
|||
:div.jtrigger.flex.flex-1.w-full
|
||||
{:ref *el
|
||||
:tabIndex 0
|
||||
:on-key-down (fn [^js e]
|
||||
(when (contains? #{"Enter" " "} (.-key e))
|
||||
(.click (.-target e))
|
||||
(util/stop e)))
|
||||
:on-click #(show! (.-target %))}
|
||||
(if (string/blank? value)
|
||||
(property-empty-value)
|
||||
|
|
Loading…
Reference in New Issue