components icon indicating copy to clipboard operation
components copied to clipboard

[Calendar] Setting the month makes storybook crash

Open Diaan opened this issue 8 months ago โ€ข 0 comments

Provide a general summary of the issue here

When setting the month with the storybook control the whole page crashed because month?.toISOString is not a function

๐Ÿค” Expected Behavior?

Month changes to the month set

๐Ÿ˜ฏ Current Behavior

Image

๐Ÿ’ Possible Solution

No response

๐Ÿ–ฅ๏ธ Steps to Reproduce

  1. Go to https://storybook.sanomalearning.design/?path=/story/date-time-calendar--min-max
  2. Open the controls
  3. set "month", "min" or "max" to any value
  4. Boom!

What browsers are you seeing the problem on? (only for bugs in code)

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

๐Ÿ‘ค Your name

Diana

๐Ÿงข Your product/team

SLDS

๐ŸŽจ Your Theme(s)

Sanoma Learning

Diaan avatar May 08 '25 14:05 Diaan