Skip to content

Commit

Permalink
[@mantine/dates] DatePicker: Set withinPortal to false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Aug 17, 2022
1 parent ca3b091 commit 7eeb278
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/src/docs/changelog/5-2-0.mdx
Expand Up @@ -47,3 +47,4 @@ function AsteriskDemo() {
- [Carousel](https://mantine.dev/others/carousel/) component now supports `height="100%"`
- [Grid.Col](https://mantine.dev/core/grid/) now supports `order` prop, it can be used to reorder columns when certain breakpoint is reached
- [Tabs](https://mantine.dev/core/tabs/) component now supports `keepMounted` prop. If it is set to `false` then components rendered inside `Tabs.Panel` will be unmounted when tab is not active.
- [DatePicker and DateRangePicker](https://mantine.dev/dates/date-picker/) components now have `withinPortal` prop set to `false` by default to match other components
2 changes: 1 addition & 1 deletion src/mantine-dates/src/components/DatePicker/DatePicker.tsx
Expand Up @@ -60,7 +60,7 @@ const defaultProps: Partial<DatePickerProps> = {
clearable: true,
disabled: false,
fixOnBlur: true,
withinPortal: true,
withinPortal: false,
firstDayOfWeek: 'monday',
openDropdownOnClear: false,
};
Expand Down
Expand Up @@ -172,7 +172,7 @@ export const DatePickerBase = forwardRef<HTMLInputElement, DatePickerBaseProps>(
onClear,
positionDependencies = [],
zIndex,
withinPortal = true,
withinPortal = false,
onBlur,
onFocus,
onChange,
Expand Down
Expand Up @@ -74,7 +74,7 @@ const defaultProps: Partial<DateRangePickerProps> = {
firstDayOfWeek: 'monday',
allowSingleDateInRange: false,
amountOfMonths: 1,
withinPortal: true,
withinPortal: false,
openDropdownOnClear: false,
};

Expand Down

0 comments on commit 7eeb278

Please sign in to comment.