carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
[DateTimePickerV2] startTime and endTime are not updated when switching from preset to relative to absolute
What package is this for?
- [x ] React
- [ ] Angular
Describe the bug
When switching from preset to relative then to absolute, the human value is updated but the startDate, endDate, startTime and endTime on absoluteValue are not updated.
To Reproduce
Steps to reproduce the behavior:
- Open preset story or absolute story here
- Click on Relative radio button,
- Make some change in Relative
- Click on Absolute radio button
- The time and date are not updated in DatePicker and TimeSpinner.
We should add a function to update startDate, endDate, startTime and endTime when switching between relative and absolute
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
A clear and concise description of what you expected to happen.
Environment/versions:
- OS: [e.g. MacOS, Windows]
- Browser: [e.g. chrome, safari]
-
carbon-addons-iot-react
version: [e.g.v2.60.0
]
Additional context
If applicable, add screenshots to help explain your problem.
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!
Unassigned myself since this one never made it to the priority.