dojo / widgets

:rocket: Dojo - UI widgets.
https://widgets.dojo.io
Other
88 stars 66 forks source link

IE11 Compat: Date input relies `String#padStart` #1722

Closed mwistrand closed 3 years ago

mwistrand commented 3 years ago

Bug

The formatDateISO util used by the date input widget relies on String.prototype.padStart, which is not supported by IE11.

Package Version: latest (v8.0.0-beta5)

Code

See https://github.com/dojo/widgets/blob/master/src/date-input/date-utils.tsx#L54-L67

Expected behavior:

formatDateISO would function correctly in IE11

Actual behavior:

formatDateISO does not function correctly in IE11