Sha256: 9177157902881493b6e5a304918e566996d4bf5ab4d55470401bdd669d46122b
Contents?: true
Size: 665 Bytes
Versions: 136
Compression:
Stored size: 665 Bytes
Contents
The `defaultDate`/`default_date` prop has a null or empty string value by default. You can pass an ISO date string (preferred rails method) or date object (preferred JS method) if you want a default value on page load. Use Ruby UTC DateTime objects and convert them to ISO date strings with `DateTime.now.utc.iso8601`. If you use a Date object without UTC time standardization the Date Picker kit may misinterpret that date as yesterdays date (consequence of timezone differentials and the Javascript Date Object constructor). See [this GitHub issue for more information](https://github.com/powerhome/playbook/issues/1167) and the anti-pattern examples below.
Version data entries
136 entries across 136 versions & 1 rubygems