-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(InputMenu/SelectMenu): add create-item
prop
#2472
Conversation
I first left it out because I thought to let the users define it using the |
commit: |
create-item
prop
create-item
propcreate-item
prop
I just tried the docs examples for both InputMenu and SelectMenu, when clicking the
|
Thanks for pointing out - sorry I wasn't 100% sure of how to use the |
What is the intent behind the There is an error inside, it's typed with the value but receives the event (from the |
Yes, I think its an explicit event for any developer to know when the create has happened.
Hmm, I suppose the better type for it is |
@ineshbose For the docs, don't you think it would be better in the examples section? We could demonstrate a real example with |
Does that replace the currently added section or in addition to that? Quite indecisive when writing docs myself, so if you've got ideas - fire away! π |
Sure, I'll take care of it π |
Before I start the docs, how are we supposed to get the created item from the |
it would be similar to onSelect! Value should be e.target.value |
create-item
propcreate-item
prop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ineshbose FYI I've updated the docs a bit and handled the locale for "Create".
I also just added the |
Thanks @ineshbose! |
π Linked issue
Resolves #2434
β Type of change
π Description
Re-adds
creatable
to SelectMenu(maybe this should also exist in InputMenu too).Let me know if this was intentionally left out (@benjamincanac)
π Checklist
/cc @sandros94