ekwonye-richard/react-flags-select

Can I add a Validation to the react-flags-select component?

Closed this issue · 1 comments

I am using this component in a Form and want to show an error if no value is selected. Is this functionality provided or is there any wrapper component for this? Thank you.

You can add validations outside of the component (using the selected value) and pass a className or selectButtonClassName based on the validity. You can also render your error message outside of the component.