mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 06:16:47 +02:00
✨ Minor api improvements on dropdown component.
This commit is contained in:
parent
ec04bb4160
commit
759530ea58
2 changed files with 12 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
(:require
|
||||
[rumext.alpha :as mf]
|
||||
[goog.object :as gobj]
|
||||
[uxbox.main.ui.components.dropdown :refer [dropdown-container]]
|
||||
[uxbox.main.ui.components.dropdown :refer [dropdown']]
|
||||
[uxbox.util.uuid :as uuid]
|
||||
[uxbox.util.data :refer [classnames]]))
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
|||
is-selectable (gobj/get props "selectable")
|
||||
selected (gobj/get props "selected")]
|
||||
(when open?
|
||||
[:> dropdown-container props
|
||||
[:> dropdown' props
|
||||
[:div.context-menu {:class (classnames :is-open open?
|
||||
:is-selectable is-selectable)}
|
||||
[:ul.context-menu-items
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue