You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We desperately want to support this. The issue right now is how to handle the child menu/item coupling. I don't have bandwidth at the moment to do this, so, I've been working around it myself :/
I believe the answer is, just as with all our other components, allow a "shorthand" object definition of the menu/items. This way, dividers and such can be inserted, but the Dropdown will be responsible for adding all the proper callbacks and managing state for them (it does quite a bit in this regard, keyboard bindings, open state, selected/active state, etc.)
You can see some ideas proposed in #889. I've also begun the infancy stage of this by allowing Dropdown options to accept shorthand values, see #1038.
I'll close this issue in favor of #889, let's move any convo there. The core issue/feature is the same, the ability to define any menu with any allowed set of children and have it "just work".
Is it possible to have 2 different sets of Dropdown Content with the option to add additions and search them (like the screenshot below)?
Right now, I'm getting these errors as I try it:
allowAdditions
prop inDropdown
requires props:options
."children
inDropdown
conflicts with props:selection
. They cannot be defined together, choose one or the other."The code below would be what it might look like.
Version
0.61.10
The text was updated successfully, but these errors were encountered: