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

Throws TypeError: Cannot read properties of null (reading 'removeEventListener' #34

Open
xe4me opened this issue Feb 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@xe4me
Copy link

xe4me commented Feb 2, 2023

Describe the bug
First of all, thank you so much for this beautiful Calendar, well done.

I'm running into an error which happens after I select a date.
I've not done any customisation, and I'm just using the simple example :

const [datePicker, setDatePicker] = useState(null)

<DatePicker
      value={datePicker}
      onChange={(change) => {
        console.log('**** onChange', change)
        setDatePicker(change)
      }}
      locale="en" // add this
    />

Reproduced Version on CodeSandbox
Screenshot 2023-02-02 at 1 00 01 pm

Here it is on CodeSandBox: Link

Expected behavior
A clear and concise description of what you expected to happen.

@xe4me xe4me added the bug Something isn't working label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant