Skip to content
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

[Feature Request] add data-invalid attribute to select component #3149

Closed
Makley-Tibola-Trichez opened this issue May 31, 2024 · 1 comment · Fixed by #3177
Closed

[Feature Request] add data-invalid attribute to select component #3149

Makley-Tibola-Trichez opened this issue May 31, 2024 · 1 comment · Fixed by #3177
Assignees

Comments

@Makley-Tibola-Trichez
Copy link

Is your feature request related to a problem? Please describe.

I am using NextUI to integrate with React Hook Form. However, when I was conducting unit testing on the Select component, I could not find a way to identify from the DOM if the Select component is invalid.

Describe the solution you'd like

The Input component has a data-invalid attribute that indicates its validity status in the DOM. It would be helpful to add a similar attribute to the Select component to facilitate DOM-based validation checks.

Describe alternatives you've considered

It's possible to add the data-invalid property to the Select component without any difficulty.
image

Screenshots or Videos

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants