mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 13:09:22 +00:00
🐛 Fix multiselection with tokens on stroke color (#7977)
This commit is contained in:
parent
1ae1c0460e
commit
09c23256b7
@ -147,11 +147,7 @@
|
|||||||
on-change on-reorder on-detach on-open on-close on-remove origin on-detach-token
|
on-change on-reorder on-detach on-open on-close on-remove origin on-detach-token
|
||||||
disable-drag on-focus on-blur select-only select-on-focus on-token-change applied-token]}]
|
disable-drag on-focus on-blur select-only select-on-focus on-token-change applied-token]}]
|
||||||
|
|
||||||
(let [;; TODO: Remove this workaround fixing `get-attrs*` fn on sidebar/options/shapes/multiple.cljs
|
(let [token-color (contains? cfg/flags :token-color)
|
||||||
applied-token (if (= :multiple applied-token)
|
|
||||||
nil
|
|
||||||
applied-token)
|
|
||||||
token-color (contains? cfg/flags :token-color)
|
|
||||||
libraries (mf/deref refs/files)
|
libraries (mf/deref refs/files)
|
||||||
|
|
||||||
color-without-hash (mf/use-memo
|
color-without-hash (mf/use-memo
|
||||||
|
|||||||
@ -223,6 +223,7 @@
|
|||||||
(cond
|
(cond
|
||||||
(= existing ::not-found) (assoc acc t-attr new-val)
|
(= existing ::not-found) (assoc acc t-attr new-val)
|
||||||
(= existing new-val) acc
|
(= existing new-val) acc
|
||||||
|
(nil? new-val) acc
|
||||||
:else (assoc acc t-attr :multiple))))
|
:else (assoc acc t-attr :multiple))))
|
||||||
|
|
||||||
merge-shape-attr
|
merge-shape-attr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user