mirror of
https://github.com/penpot/penpot.git
synced 2025-03-10 06:41:40 -05:00
Fix token position wrong, component gets rendered on user mount
This commit is contained in:
parent
1633f8035e
commit
6fc370bb30
1 changed files with 1 additions and 0 deletions
|
@ -311,6 +311,7 @@
|
|||
token-id (:token-id mdata)
|
||||
token (get (mf/deref refs/workspace-tokens) token-id)]
|
||||
(mf/use-effect
|
||||
(mf/deps mdata)
|
||||
(fn []
|
||||
(when-let [node (mf/ref-val dropdown-ref)]
|
||||
(reset! width (.-offsetWidth node)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue