You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Changing the hourFormat does not refresh the displayed datetime in the calendar's input unless the date is changed.
Expected behavior
Changing the hourFormat would immediately update the display, e.g. "1:00 PM" would become "13:00"
Minimal reproduction of the problem with instructions
See link above for live demo with instructions. Minimal repro is this:
Display a date in the component.
Programattically change the timeFormat prop from "12" to "24"
The format change is not updated in the Calendar's input unless the date changes.
Please tell us about your environment:
Windows 10, create-react-app 3.4.3, VS Code
React version: 16.12
PrimeReact version: 4.2.2
This is the version we are on, and that's what I put in the sandbox.
I could not get the sandbox working with 5.0.2 to test that version. Looking at the code, I expect this issue still exists there.
Browser: all
Language: ES6 (all suspected)
Note
My use case is only concerned with hourFormat. I suspect the following props to have the same behavior though, since they similarly affect the date display in the input:
dateFormat
timeOnly
showSeconds
showMillisec
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
Forked sandbox with instructions to recreate:
https://codesandbox.io/s/primereact-test-forked-vonjm
Current behavior
Changing the hourFormat does not refresh the displayed datetime in the calendar's input unless the date is changed.
Expected behavior
Changing the hourFormat would immediately update the display, e.g. "1:00 PM" would become "13:00"
Minimal reproduction of the problem with instructions
See link above for live demo with instructions. Minimal repro is this:
The format change is not updated in the Calendar's input unless the date changes.
Please tell us about your environment:
Windows 10, create-react-app 3.4.3, VS Code
React version: 16.12
PrimeReact version: 4.2.2
This is the version we are on, and that's what I put in the sandbox.
I could not get the sandbox working with 5.0.2 to test that version. Looking at the code, I expect this issue still exists there.
Browser: all
Language: ES6 (all suspected)
Note
My use case is only concerned with hourFormat. I suspect the following props to have the same behavior though, since they similarly affect the date display in the input:
dateFormat
timeOnly
showSeconds
showMillisec
The text was updated successfully, but these errors were encountered: