mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 15:47:18 +02:00
✨ Fix corner cases of duplicate/copy-paste/cut-paste variants
This commit is contained in:
parent
39c7782019
commit
785b61be2f
15 changed files with 217 additions and 130 deletions
|
@ -75,6 +75,7 @@
|
|||
(let [open* (mf/use-state false)
|
||||
open (deref open*)
|
||||
|
||||
;;use-memo-equal
|
||||
selected* (mf/use-state default-selected)
|
||||
selected (deref selected*)
|
||||
|
||||
|
@ -215,6 +216,11 @@
|
|||
(mf/with-effect [options]
|
||||
(mf/set-ref-val! options-ref options))
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps default-selected)
|
||||
(fn []
|
||||
(reset! selected* default-selected)))
|
||||
|
||||
[:div {:ref combobox-ref
|
||||
:class (stl/css-case
|
||||
:combobox-wrapper true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue