Sha256: c379cdde42e3893660ef2eda64ecd51738877139e64a583ec43797a71d9d96a3
Contents?: true
Size: 668 Bytes
Versions: 1854
Compression:
Stored size: 668 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
1,854 entries across 1,854 versions & 2 rubygems