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

Date Picker component error #4846

Open
John-Fixit opened this issue Feb 17, 2025 · 2 comments
Open

Date Picker component error #4846

John-Fixit opened this issue Feb 17, 2025 · 2 comments

Comments

@John-Fixit
Copy link

HeroUI Version

2.6.13

Describe the bug

The Date picker is throwing error when it is used only without parseDate and also one must pass a default date, if not it throws error with blank page

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

use DatePicker component in react
add onChange={setDate}
add value attribute to the DatePicker (it will throws error there)

or use parseData without default value
like this
const [date, setDate] = useState(parseDate(""))

Expected behavior

it supposed not to be throwing such error and not showing blank page

Screenshots or Videos

No response

Operating System Version

OS

Browser

Chrome

Copy link

linear bot commented Feb 17, 2025

@wingkwong
Copy link
Member

Please show the complete error and the exact code you use. Also if you don't use the default value, you should set the date null instead of "".

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

No branches or pull requests

2 participants