Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[next] DatePicker Time inputs don't accept 24h input #941

Closed
luhagel opened this issue Nov 18, 2024 · 0 comments
Closed

[next] DatePicker Time inputs don't accept 24h input #941

luhagel opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working next

Comments

@luhagel
Copy link

luhagel commented Nov 18, 2024

Describe the bug

When trying to enter a number greater than 12 into a DatePicker field segment with hourCycle set to 24, the segment defaults the first digit to 0 (i.e. 22 -> 02, 15 -> 05 etc) which makes inputting times impossible. Selecting a date via the calendar correctly sets the value to 24 though 9although it should probably be 0:00, but that's already covered by another issue.

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-nvqn6t

Logs

no relevant logs occuring

System Info

System:
    OS: macOS 15.1
    CPU: (8) arm64 Apple M1
    Memory: 127.11 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.9.0 - /opt/homebrew/bin/npm
    pnpm: 9.13.2 - /opt/homebrew/bin/pnpm
    Watchman: 2024.11.11.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 130.0.6723.117
    Safari: 18.1
  npmPackages:
    @sveltejs/kit: ^2.8.1 => 2.8.1 
    bits-ui: ^1.0.0-next.59 => 1.0.0-next.59 
    svelte: ^5.2.2 => 5.2.2

Severity

blocking an upgrade

@huntabyte huntabyte added bug Something isn't working next labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next
Projects
None yet
Development

No branches or pull requests

2 participants