adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
12.88k stars 1.12k forks source link

DatePicker browser autocomplete support #7167

Open mauron85 opened 1 week ago

mauron85 commented 1 week ago

Provide a general summary of the feature here

Currently DatePicker from react-aria-components seems not to be supporting browser autocomplete.

I believe it's because it's implemeted as bunch of divs with contenteditable=true.

๐Ÿค” Expected Behavior?

DatePicker supports autocomplete functionality of the browsers

๐Ÿ˜ฏ Current Behavior

DatePicker doesn't support autocomplete.

๐Ÿ’ Possible Solution

No response

๐Ÿ”ฆ Context

As I user, I often use autofill for filling up various form data. Currently it works, with Inputs, but not with DatePicker.

๐Ÿ’ป Examples

No response

๐Ÿงข Your Company/Team

No response

๐Ÿ•ท Tracking Issue

No response

LFDanLu commented 5 days ago

We could try using a visually hidden input strategy similar to what we do with Select, where the autofill targets that input and allows us to then parse it into a date time format that is consumable by the DatePicker. Will need testing, open to any help testing it out as well!