[Bug]: date-picker calendar is null #18182
Labels
component: date-picker
package: @carbon/web-components
@carbon/web-components
role: dev 🤖
severity: 3
https://ibm.biz/carbon-severity
type: bug 🐛
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 errorSuggested Severity
None
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: