duetds / date-picker

Duet Date Picker is an open source version of Duet Design System’s accessible date picker. Try live example at https://duetds.github.io/date-picker/
https://www.duetds.com
MIT License
1.73k stars 68 forks source link

ensure date is always submitted in ISO format #43

Closed WickyNilliams closed 4 years ago

WickyNilliams commented 4 years ago

fixes #21

sets a hidden input to the raw ISO value, and attaches the name prop to that.

this means, regardless of localization, the ISO value will always be submitted in a traditional form submission, and the ISO value will available be on a FormData instance

johnantoni commented 4 years ago

Any chance of getting this merged?

Pulled and ran the new test, works as expected.

arielsalminen commented 4 years ago

@WickyNilliams Looks good! Let’s merge once the one conflict is resolved.

WickyNilliams commented 4 years ago

Rebased and fixed conflicts