Skip to content

Commit ad9b665

Browse files
committed
Updated default date doc ex language to include guidance for leveraging prop for intermediate defaults rails and react
1 parent c7a8b24 commit ad9b665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playbook/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ The `defaultDate`/`default_date` prop has a null or empty string value by defaul
22

33
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.
44

5-
5+
You can leverage the `defaultDate`/`default_date` prop with custom logic in your filter or controller files where the determination of the default value changes based on user interaction. The page can load with an initial default date picker value or placeholder text, then after filter submission save the submitted values as the "new default" (via state or params).

0 commit comments

Comments
 (0)