shoelace-style/shoelace
View on GitHubsl-dialog tab issue with date and time input types
Open
#2,437 opened on May 1, 2025
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:
- Create an sl-dialog component
- Create a date or time input inside the component
- 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.