Timepicker time resets when using AM/PM toggle #29720
Labels
[Feature] UI Components
Impacts or related to the UI component system
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
The AM/PM selectors are non-functional, the hour box gets reset to the previous value when switching from AM to PM
Originally reported in a related issue by @Ipstenu, who added a GIF of the problem:
Related issue #24206
Step-by-step reproduction instructions
Expected behaviour
Setting 11am then pressing PM would change it to 11PM
Actual behaviour
The time is briefly set to 11PM but changes back to 11AM by itself after a brief moment.
Of note, the underlying date/time value does get changed correctly, and can be seen if the value is used in an unrelated component. However, when it is reset in the timepicker component, all other components using this value change too, so it isn't purely local state of the timepicker component that's being reset.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: