Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pickers] Update closeOnSelect and actionBar.actions default values #15944

Merged
merged 49 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
0a15fe0
sets closeOnSelect to false by default on pickers containing time views
Aug 30, 2024
3814dd9
update tests
Aug 30, 2024
5bc04c8
update lifecycle docs
Aug 30, 2024
40aa049
add description for mobile pickers
Sep 3, 2024
b738d94
add description for DatePicker and DateRangePicker
Sep 3, 2024
4f1875b
add prop description for DateTime and DateTimeRange pickers
Sep 3, 2024
c5ab12a
add prop description for time picker
Sep 3, 2024
a11dff4
fix e2e tests
Sep 4, 2024
0aa7a31
remove unnecessary code wrap
arthurbalduini Oct 9, 2024
c37d64a
add closeOnSelect default values mention on onClose section
arthurbalduini Oct 16, 2024
85dfa43
fix grammar errors
arthurbalduini Oct 16, 2024
e33098a
update prop description on docs
arthurbalduini Oct 16, 2024
913d92b
use 'accept' and 'cancel' actions by default on all components
arthurbalduini Oct 23, 2024
f9ab3b5
use valueType on layout
arthurbalduini Oct 23, 2024
24bad2e
style adjustments
arthurbalduini Oct 23, 2024
19dee61
fix e2e test
arthurbalduini Oct 23, 2024
25416f5
adapt DesktopTimePicker tests
arthurbalduini Oct 29, 2024
10163cc
use actions on DesktopDateTimeRangePicker
arthurbalduini Oct 29, 2024
ac5ad51
adds 'accept' action click on tests
arthurbalduini Oct 30, 2024
0f9fe35
removes unnecessary duplicated comment
arthurbalduini Oct 30, 2024
b19348b
fix overextended interface
arthurbalduini Oct 30, 2024
1937341
define usePickerLayout as source of actions for actionBar
arthurbalduini Oct 30, 2024
c5160f5
remove unnecessary type ref
arthurbalduini Oct 30, 2024
31a12ac
remove unnecessary imports
arthurbalduini Oct 31, 2024
54c368c
revert layout changes
arthurbalduini Oct 31, 2024
eb20b49
revert ValueType usage
arthurbalduini Nov 5, 2024
d098ecd
PR reviews
arthurbalduini Nov 12, 2024
df06377
lukas review
arthurbalduini Nov 12, 2024
e7b6345
apply lukas suggestion on action logic
arthurbalduini Nov 12, 2024
db08ac4
remove unnecessary overrides
arthurbalduini Nov 12, 2024
5039c0d
remove spacing
arthurbalduini Nov 12, 2024
a82f515
revert MultiSectionDigitalClock layout changes
arthurbalduini Nov 12, 2024
451e218
Update lifecycle
LukasTy Dec 19, 2024
0dba2a9
Add a migration section
LukasTy Dec 19, 2024
cfe82d2
Merge branch 'master' into refactor-closeOnSelect-behavior-2
LukasTy Dec 20, 2024
57aa161
fix eslint
LukasTy Dec 20, 2024
e07a0e3
Remove no longer relevant change
LukasTy Dec 20, 2024
38b3623
Simplify `closeOnSelect` default value setting
LukasTy Dec 20, 2024
23e6a45
Add explicit `ownerState` type
LukasTy Dec 20, 2024
02f53e3
Update the test approach
LukasTy Dec 20, 2024
45e9cff
Change import to avoid any changes
LukasTy Dec 20, 2024
1280ffb
Apply suggestions from code review
LukasTy Dec 20, 2024
c876b9b
Link to doc example
LukasTy Dec 30, 2024
208f289
Avoid the unclear notion of `complex views`
LukasTy Dec 30, 2024
127d4c7
Fix JSDoc comment
LukasTy Dec 30, 2024
4298c51
Merge branch 'master' into refactor-closeOnSelect-behavior-2
LukasTy Dec 30, 2024
ee93a44
Code review: Flavien
LukasTy Jan 3, 2025
88f2de9
Merge branch 'master' into refactor-closeOnSelect-behavior-2
LukasTy Jan 3, 2025
578640c
Make default `actions` stable to avoid breaking possible memoization
LukasTy Jan 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions docs/data/date-pickers/lifecycle/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@
#### When the last view is completed

When a selection in the last view is made, `onClose` will be called only if the `closeOnSelect` prop is equal to `true`.
By default, it is set to `true` on desktop and `false` on mobile.
The default value of `closeOnSelect` depends on the component:

Here are a few examples:
- Date Picker and Date Range Picker: `true` on desktop and `false` on mobile variants;
- Time Picker, Date Time Picker, and Date Time Range Picker: `false` on desktop and mobile variants.
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved

Here are a few examples:

:::info
The examples below are using the desktop and mobile variants of the pickers, but the behavior is exactly the same when using the responsive variant (`DatePicker`, `TimePicker`, ...) on a mobile or desktop environment.
Expand All @@ -75,7 +78,7 @@
- Default `views` prop: `['year', 'day']`
- Explicit `closeOnSelect` prop: `false`

**Behavior:** The picker won't close when selecting a day. The user will have to click on the _OK_ action to close it.
**Behavior:** The picker will not close when selecting a day. The user will have to click on the _OK_ action to close it.

Check warning on line 81 in docs/data/date-pickers/lifecycle/lifecycle.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/data/date-pickers/lifecycle/lifecycle.md", "range": {"start": {"line": 81, "column": 28}}}, "severity": "WARNING"}

Check warning on line 81 in docs/data/date-pickers/lifecycle/lifecycle.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/data/date-pickers/lifecycle/lifecycle.md", "range": {"start": {"line": 81, "column": 74}}}, "severity": "WARNING"}

:::success
If you want to set `closeOnSelect` to `false` on a desktop picker, you should consider enabling the action bar to allow the user to validate the value:
Expand All @@ -96,7 +99,7 @@
- Default `views` prop: `['year', 'day']`
- Default `closeOnSelect` prop: `false`

**Behavior:** The picker won't close when selecting a day. The user will have to click on the _OK_ action to close it.
**Behavior:** The picker will not close when selecting a day. The user will have to click on the _OK_ action to close it.

Check warning on line 102 in docs/data/date-pickers/lifecycle/lifecycle.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/data/date-pickers/lifecycle/lifecycle.md", "range": {"start": {"line": 102, "column": 28}}}, "severity": "WARNING"}

Check warning on line 102 in docs/data/date-pickers/lifecycle/lifecycle.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/data/date-pickers/lifecycle/lifecycle.md", "range": {"start": {"line": 102, "column": 74}}}, "severity": "WARNING"}

- ```tsx
<DesktopDatePicker views={['day', 'month', 'year']} />
Expand All @@ -112,9 +115,9 @@
```

- Default `views` prop: `['hours', 'minutes']` (plus a `meridiem` view if the locale is in 12-hours format)
- Default `closeOnSelect` prop: `true`
- Default `closeOnSelect` prop: `false`

**Behavior:** The picker will close when selecting the minutes or meridiem (if a 12-hour clock is used).
**Behavior:** The picker will not close when selecting the minutes or meridiem (if a 12-hour clock is used).

Check warning on line 120 in docs/data/date-pickers/lifecycle/lifecycle.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/data/date-pickers/lifecycle/lifecycle.md", "range": {"start": {"line": 120, "column": 28}}}, "severity": "WARNING"}

:::info
You don't have to fill all the views for the picker to close automatically.
Expand Down Expand Up @@ -225,7 +228,10 @@
#### When the last view is completed

When a selection in the last view is made, `onAccept` will be called only if the `closeOnSelect` prop is equal to `true` and the value has been modified since the last time `onAccept` was called.
By default, `closeOnSelect`, is set to `true` on desktop and `false` on mobile.
The default value of `closeOnSelect` depends on the component used:

- Date Picker and Date Range Picker: `true` on desktop and `false` on mobile variants;
- Time Picker, Date Time Picker, and Date Time Range Picker: `false` on desktop and mobile variants.
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved

Here are a few examples:

Expand All @@ -249,7 +255,7 @@
- Default `views` prop: `['year', 'day']`
- Explicit `closeOnSelect` prop: `false`

**Behavior:** The picker won't call `onAccept` when selecting a value.
**Behavior:** The picker will not call `onAccept` when selecting a value.

Check warning on line 258 in docs/data/date-pickers/lifecycle/lifecycle.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/data/date-pickers/lifecycle/lifecycle.md", "range": {"start": {"line": 258, "column": 28}}}, "severity": "WARNING"}

:::success
If you want to set `closeOnSelect` to `false` on a desktop picker, you should consider enabling the action bar to allow the user to validate the value:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,15 @@ This change causes a few breaking changes:

- The button to render a single year is no longer wrapped in a `<div />`, the spacing are instead defined inside the `root` slot of the Year Calendar.

### Update default `closeOnSelect` and Action Bar `actions` values

The default value of the `closeOnSelect` prop has been updated to `false` for all Picker components, except `<DesktopDatePicker />` and `<DesktopDateRangePicker />`, which still have `closeOnSelect` set to `true`.

This change goes hand in hand with the new default `actions` prop value for the `<PickersActionBar />` component.
The default value of the `actions` prop has been updated to `['cancel', 'accept']` for all Picker components, except `<DesktopDatePicker />` and `<DesktopDateRangePicker />`.

If the updated values do not fit your use case, you can [override them](/x/react-date-pickers/custom-components/#component-props).

## Slots breaking changes

### Slot: `layout`
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"ampm": { "type": { "name": "bool" }, "default": "utils.is12HourCycleInCurrentLocale()" },
"ampmInClock": { "type": { "name": "bool" }, "default": "true on desktop, false on mobile" },
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/date-time-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"type": { "name": "enum", "description": "1<br>&#124;&nbsp;2<br>&#124;&nbsp;3" },
"default": "1"
},
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"currentMonthCalendarPosition": {
"type": { "name": "enum", "description": "1<br>&#124;&nbsp;2<br>&#124;&nbsp;3" },
"default": "1"
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/desktop-date-picker.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"props": {
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "true" },
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/desktop-date-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"type": { "name": "enum", "description": "1<br>&#124;&nbsp;2<br>&#124;&nbsp;3" },
"default": "2"
},
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "true" },
"currentMonthCalendarPosition": {
"type": { "name": "enum", "description": "1<br>&#124;&nbsp;2<br>&#124;&nbsp;3" },
"default": "1"
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/desktop-date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"ampm": { "type": { "name": "bool" }, "default": "utils.is12HourCycleInCurrentLocale()" },
"ampmInClock": { "type": { "name": "bool" }, "default": "true on desktop, false on mobile" },
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"type": { "name": "enum", "description": "1<br>&#124;&nbsp;2<br>&#124;&nbsp;3" },
"default": "1"
},
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"currentMonthCalendarPosition": {
"type": { "name": "enum", "description": "1<br>&#124;&nbsp;2<br>&#124;&nbsp;3" },
"default": "1"
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/desktop-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"ampm": { "type": { "name": "bool" }, "default": "utils.is12HourCycleInCurrentLocale()" },
"ampmInClock": { "type": { "name": "bool" }, "default": "true on desktop, false on mobile" },
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"defaultValue": { "type": { "name": "object" } },
"disabled": { "type": { "name": "bool" }, "default": "false" },
"disableFuture": { "type": { "name": "bool" }, "default": "false" },
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/mobile-date-picker.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"props": {
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/mobile-date-range-picker.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"props": {
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"currentMonthCalendarPosition": {
"type": { "name": "enum", "description": "1<br>&#124;&nbsp;2<br>&#124;&nbsp;3" },
"default": "1"
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/mobile-date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"ampm": { "type": { "name": "bool" }, "default": "utils.is12HourCycleInCurrentLocale()" },
"ampmInClock": { "type": { "name": "bool" }, "default": "true on desktop, false on mobile" },
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"dayOfWeekFormatter": {
"type": { "name": "func" },
"default": "(date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"props": {
"ampm": { "type": { "name": "bool" }, "default": "utils.is12HourCycleInCurrentLocale()" },
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"currentMonthCalendarPosition": {
"type": { "name": "enum", "description": "1<br>&#124;&nbsp;2<br>&#124;&nbsp;3" },
"default": "1"
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/mobile-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"ampm": { "type": { "name": "bool" }, "default": "utils.is12HourCycleInCurrentLocale()" },
"ampmInClock": { "type": { "name": "bool" }, "default": "true on desktop, false on mobile" },
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"defaultValue": { "type": { "name": "object" } },
"disabled": { "type": { "name": "bool" }, "default": "false" },
"disableFuture": { "type": { "name": "bool" }, "default": "false" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/pickers-action-bar.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "arrayOf",
"description": "Array&lt;'accept'<br>&#124;&nbsp;'cancel'<br>&#124;&nbsp;'clear'<br>&#124;&nbsp;'today'&gt;"
},
"default": "`['cancel', 'accept']` for mobile and `[]` for desktop"
"default": "`[]` for Desktop Date Picker and Desktop Date Range Picker\n- `['cancel', 'accept']` for all other Pickers"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the dash in the second line?

Suggested change
"default": "`[]` for Desktop Date Picker and Desktop Date Range Picker\n- `['cancel', 'accept']` for all other Pickers"
"default": "`[]` for Desktop Date Picker and Desktop Date Range Picker.\n`['cancel', 'accept']` for all other Pickers."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To have the following JSDoc preview.
Do you have suggestions on how to improve it? 🤔
Screenshot 2024-12-30 at 18 27 05

},
"disableSpacing": { "type": { "name": "bool" }, "default": "false" },
"sx": {
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/x/api/date-pickers/time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"ampm": { "type": { "name": "bool" }, "default": "utils.is12HourCycleInCurrentLocale()" },
"ampmInClock": { "type": { "name": "bool" }, "default": "true on desktop, false on mobile" },
"autoFocus": { "type": { "name": "bool" } },
"closeOnSelect": {
"type": { "name": "bool" },
"default": "`true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop)."
},
"closeOnSelect": { "type": { "name": "bool" }, "default": "false" },
"defaultValue": { "type": { "name": "object" } },
"desktopModeMediaQuery": {
"type": { "name": "string" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "If <code>true</code>, the main element is focused during the first mount. This main element is: - the element chosen by the visible view if any (i.e: the selected day on the <code>day</code> view). - the <code>input</code> element if there is a field rendered."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"dayOfWeekFormatter": {
"description": "Formats the day of week displayed in the calendar header.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": "The number of calendars to render on <strong>desktop</strong>."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"currentMonthCalendarPosition": { "description": "Position the current month is rendered in." },
"dayOfWeekFormatter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "If <code>true</code>, the main element is focused during the first mount. This main element is: - the element chosen by the visible view if any (i.e: the selected day on the <code>day</code> view). - the <code>input</code> element if there is a field rendered."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"dayOfWeekFormatter": {
"description": "Formats the day of week displayed in the calendar header.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "The number of calendars to render on <strong>desktop</strong>."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"currentMonthCalendarPosition": { "description": "Position the current month is rendered in." },
"dayOfWeekFormatter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "If <code>true</code>, the main element is focused during the first mount. This main element is: - the element chosen by the visible view if any (i.e: the selected day on the <code>day</code> view). - the <code>input</code> element if there is a field rendered."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"dayOfWeekFormatter": {
"description": "Formats the day of week displayed in the calendar header.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": "The number of calendars to render on <strong>desktop</strong>."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"currentMonthCalendarPosition": { "description": "Position the current month is rendered in." },
"dayOfWeekFormatter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "If <code>true</code>, the main element is focused during the first mount. This main element is: - the element chosen by the visible view if any (i.e: the selected day on the <code>day</code> view). - the <code>input</code> element if there is a field rendered."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"dayOfWeekFormatter": {
"description": "Formats the day of week displayed in the calendar header.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "The number of calendars to render on <strong>desktop</strong>."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"currentMonthCalendarPosition": { "description": "Position the current month is rendered in." },
"dayOfWeekFormatter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "If <code>true</code>, the main element is focused during the first mount. This main element is: - the element chosen by the visible view if any (i.e: the selected day on the <code>day</code> view). - the <code>input</code> element if there is a field rendered."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"defaultValue": {
"description": "The default value. Used when the component is not controlled."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "If <code>true</code>, the main element is focused during the first mount. This main element is: - the element chosen by the visible view if any (i.e: the selected day on the <code>day</code> view). - the <code>input</code> element if there is a field rendered."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"dayOfWeekFormatter": {
"description": "Formats the day of week displayed in the calendar header.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "If <code>true</code>, the main element is focused during the first mount. This main element is: - the element chosen by the visible view if any (i.e: the selected day on the <code>day</code> view). - the <code>input</code> element if there is a field rendered."
},
"closeOnSelect": {
"description": "If <code>true</code>, the popover or modal will close after submitting the full date."
"description": "If <code>true</code>, the Picker will close after submitting the full date."
},
"currentMonthCalendarPosition": { "description": "Position the current month is rendered in." },
"dayOfWeekFormatter": {
Expand Down
Loading
Loading