Open fzn0x opened 3 months ago
I got this too, and think I fixed it by being explicit in the onChange
callback: onChange={(date: Date | null) => setStartDate(date)}
Same error here. onChange={(date: Date | null) => setStartDate(date)}
works, but I would prefer not to have my variables declared as date: Date | null
. I got this: onChange={(date: Date | null) => date ? setStartDate(date) : null}