0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Fix naming

This commit is contained in:
Florian Schroedl 2024-05-17 09:04:50 +02:00
parent cb980ace44
commit 8dd2ba7d78

View file

@ -36,7 +36,7 @@
max-val (get params :max)
emit-blur? (mf/use-ref nil)
font-size-wrapper-ref (mf/use-ref)
select-wrapper-ref (mf/use-ref)
toggle-dropdown
(mf/use-fn
@ -145,7 +145,7 @@
(reset! state* {:current-value value})))
(mf/with-effect [is-open?]
(let [wrapper-node (mf/ref-val font-size-wrapper-ref)
(let [wrapper-node (mf/ref-val select-wrapper-ref)
node (dom/get-element-by-class "checked-element is-selected" wrapper-node)
nodes (dom/get-elements-by-class "checked-element-value" wrapper-node)
closest (fn [a b] (first (sort-by #(mth/abs (- % b)) a)))