Skip to content

Validation not triggered when adding Paste Combobox component marked as required for twilio-webchat-react-app #2851

Answered by TheSisb
sakukreti asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @sakukreti,

I threw together a quick Codesandbox based on your code in Slack.
I am able to reproduce what you've described. The input boxes get browser validation but Combobox does not. I believe this is intended, since the Combobox is a complex interaction; while it may use an HTML input under the hood, it has different behavior that don't necessarily map to browser validation.

You may want to build your own field validation and use the HelpText component to display different error messages. We have some notes on how to manage validation on our docs.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sakukreti
Comment options

@TheSisb
Comment options

Answer selected by TheSisb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants