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]: date-picker calendar is null #18182

Open
2 tasks done
petibm opened this issue Nov 29, 2024 · 0 comments
Open
2 tasks done

[Bug]: date-picker calendar is null #18182

petibm opened this issue Nov 29, 2024 · 0 comments

Comments

@petibm
Copy link

petibm commented Nov 29, 2024

Package

@carbon/web-components

Browser

No response

Package version

v2.18.0

React version

No response

Description

date-picker is throwing Uncaught TypeError: calendar is null, when using range mode and setting some attribute (e.g. date-format).
https://github.com/annawen1/carbon/blob/ad24e25508debe5b5fbe452bfcfc840c5480889d/packages/web-components/src/components/date-picker/date-picker.ts#L393

Reproduction/example

https://stackblitz.com/edit/github-gmzawk?file=index.html

Steps to reproduce

see stackblitz, setting some property of <cds-date-picker> causes this error

Suggested Severity

None

Application/PAL

No response

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

3 participants