mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 14:12:36 -05:00
Fix naming
This commit is contained in:
parent
cb980ace44
commit
8dd2ba7d78
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@
|
||||||
max-val (get params :max)
|
max-val (get params :max)
|
||||||
|
|
||||||
emit-blur? (mf/use-ref nil)
|
emit-blur? (mf/use-ref nil)
|
||||||
font-size-wrapper-ref (mf/use-ref)
|
select-wrapper-ref (mf/use-ref)
|
||||||
|
|
||||||
toggle-dropdown
|
toggle-dropdown
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
@ -145,7 +145,7 @@
|
||||||
(reset! state* {:current-value value})))
|
(reset! state* {:current-value value})))
|
||||||
|
|
||||||
(mf/with-effect [is-open?]
|
(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)
|
node (dom/get-element-by-class "checked-element is-selected" wrapper-node)
|
||||||
nodes (dom/get-elements-by-class "checked-element-value" wrapper-node)
|
nodes (dom/get-elements-by-class "checked-element-value" wrapper-node)
|
||||||
closest (fn [a b] (first (sort-by #(mth/abs (- % b)) a)))
|
closest (fn [a b] (first (sort-by #(mth/abs (- % b)) a)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue