nextui
nextui copied to clipboard
Pass input value to onContentClick handler
I think it would be really convenient to pass the current value of an input field to the onContentClick handler for the use case that the content is a button that should submit the input value. I know there are other ways to solve this but directly passing the value in the handler seems by far the most simple version to me.
@peteole is attempting to deploy a commit to the NextUI Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| nextui-storybook | ✅ Ready (Inspect) | Visit Preview | Aug 14, 2022 at 7:53AM (UTC) |
What do you think about it?
Hey @peteole I really appreciate your contribution, however, the input value is already being sent through the onChange function, on the other hand, the content element render will probably change once we migrate the input to react-aria, stay tuned 🙌🏼
Ok, I get it. The idea was that the content would be used as a submit-button and then it would be useful to pass the text to be submitted to the callback. Maybe you can consider this in the migration.