carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
[DateTimePicker] Absolute range - Clicking apply without selecting dates results in "Invalid date to Invalid date"
What package is this for?
- [x ] React
- [ ] Angular
Describe the bug
Selecting absolute range for DateTimePicker and then clicking apply before making any date selections results in component displaying "Invalid date to Invalid date"
To Reproduce
Steps to reproduce the behavior:
- Click on component
- Click on custom range
- Select absolute radio
- Click apply without making any date selection
Please create a reduced test case in CodeSandbox: https://codesandbox.io/s/github/carbon-design-system/carbon-addons-iot-react/tree/next/packages/react/examples/codesandbox
Expected behavior
The apply button shouldn't be clickable without making date selections
Environment/versions:
- OS: [e.g. MacOS, Windows]
- Browser: [e.g. chrome, safari]
-
carbon-addons-iot-react
version: [e.g.v2.60.0
]
Additional context
Can reproduce here https://carbon-addons-iot-react.com/?path=/story/1-watson-iot-date-time-range-selector-datetime-picker--default
Add any other context about the problem here.
Specific timeline issues / requests
Do you want this work within a specific time period? Is it related to an upcoming release?
NB: The core contributors will try to work with your timeline, but it's not guaranteed. The earlier you make a request in advance of a desired delivery date, the better!
Desired behavior would be to disable the "Apply" button until a valid selection is made