You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The list attribute is missing from many input element types #5330
It is valid on text, search, url, tel, email, date, month, week, time, datetime-local, number, range, and color.
However, Preact 11's dom.d.ts typings only recognize it on text, search, url, tel, and email.
In particular, the list attribute is the recommended way to get "tick marks" on an <input type="range"> slider, which Preact 11 does not recognize.
To Reproduce
Steps to reproduce the behavior:
Write a Preact component which includes an <input type="range" list={...}>, where the list attribute references some <datalist>'s ID (probably via useId)
Observe that the list attribute is not recognized.
Expected behavior
The list attribute should be recognized on all input types for which it is officially supported.
Activity
rschristian commentedon Oct 25, 2026
Wasn't intentional, was just a mistake when building out the accessible role stuff.
PRs welcome.
fix(types): allow list attribute on all valid input types (#5330)