shoelace-style/shoelace

sl-dialog tab issue with date and time input types

Open

#2,437 opened on May 1, 2025

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (922 forks)github user discovery
bugfixed-in-wahelp wanted

Repository metrics

Stars
 (13,867 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Describe the bug

When using <input type="date"> or <input type="time"> modern browsers have multiple sub-fields inside each element that can normally be tabbed to, but when used inside an this tabbing behavior is broken and tab will jump to the next element.

To Reproduce

Steps to reproduce the behavior:

  1. Create an sl-dialog component
  2. Create a date or time input inside the component
  3. Try to use tab to navigate to the various sub-fields inside the input

Demo

https://codepen.io/shadedream/pen/EaaQYZw

Screenshots

N/A

Browser / OS

  • OS: Mac, Windows
  • Browser: Firefox, Chrome, Safari
  • Browser version: FF 137.0.2, Chrome 136.0.7103.49, Safari 18.4

Additional information

In the codepen, you can see the behavior inside and out of the sl-dialog for comparison.

Contributor guide