Describe the issue. What is the expected and unexpected behavior?
The onChange method of the TimePicker components is returning the wrong value on the minutes proproperty. Selecting 30 minutes returns 3 instead of 30.
Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
Describe the issue. What is the expected and unexpected behavior? The
onChange
method of theTimePicker
components is returning the wrong value on theminutes
proproperty. Selecting 30 minutes returns 3 instead of 30.Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
code:
As far I could see, this bug is caused on the
getMinutes
implementation or in the used regex. https://github.com/patternfly/patternfly-react/blob/f7e9491a80802c54956c15e2265585f03a23c111/packages/react-core/src/components/TimePicker/TimePickerUtils.tsx#L104-L107Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around? Bug
What is your product and what release version are you targeting? Kogito Tooling. PatternFly version: @pattenfly/react-core: 4.121.1