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

[BUG] - DatePicker component "isInvalid" prop not working as expact #3381

Closed
goswamikaushik001 opened this issue Jul 1, 2024 · 6 comments
Closed

Comments

@goswamikaushik001
Copy link

NextUI Version

2.4.2

Describe the bug

he isInvalid prop of the datepicker component displays an error message even when set to false.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Use the datepicker component in a React application.
  2. Set the isInvalid prop to false.
  3. Observe that the error message is still displayed.

Expected behavior

No error message should be displayed when isInvalid is set to false.

Screenshots or Videos

code :
image

preview
image

Operating System Version

  • Ubuntu 22.04.4 LTS

Browser

Other (add additonal context)

@wingkwong
Copy link
Member

I couldn't reproduce the issue using the given code, either in 2.4.2 / canary branch or with aria / native validationBehaviour. Can you double check the version? Also please provide a minimal reproducible environment for demonstration. Thanks.

@abhinandan-verma
Copy link
Contributor

@goswamikaushik001 if you are still having the issue kindly provide a reproducible enviroment. so that we can help you.
as above mentioned it cannot be reproduced in latest version.
Maybe you just need to update.

@goswamikaushik001
Copy link
Author

goswamikaushik001 commented Jul 27, 2024 via email

@abhinandan-verma
Copy link
Contributor

abhinandan-verma commented Jul 27, 2024

Kindly close the issue as completed. Happy to help you :)

@goswamikaushik001
Copy link
Author

thank you for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment