Skip to content

[Time Picker] Period Automatically Switches to PM #2478

Open
@BlueFrog130

Description

@BlueFrog130

🐛 Bug report

Time picker component always changes period to PM when changing hour. This does not occur when altering minutes.

💥 Steps to reproduce

  1. Create default time picker implementation
  2. Set an AM value
  3. Change the hour
  4. Note how the period changed

💻 Link to reproduction

CodeSandbox reproduction: https://codesandbox.io/p/sandbox/qhnjwh

🧐 Expected behavior

I would expect the period to remain the same when changing the value, not automatically swapping to the current period.

🧭 Possible Solution

🌍 System information

Software Version(s)
Zag Version 1.12.4
Browser Edge
Operating System Windows 10

📝 Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions