[DatePicker] hideOutsideDates
is only respected when importing Mantine styles
#5003
Labels
Fixed patch
Completed issues that will be published with next patch (1.0.X)
What package has an issue
@mantine/dates
Describe the bug
hideOutsideDates
is not respected without importing Mantine's CSS.The description of
hideOutsideDates
is "Determines whether outside dates should be hidden, defaults to false". I'd argue that the dates should disappear even without importing Mantine's CSS. It's not a styling opinion, it's a matter of whether the prop works or not.What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
7.1.2
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/s/black-field-kyjyt4?file=/src/App.tsx
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
Do not render the
Day
buttons that's outside whenhideOutsideDates
is true.The text was updated successfully, but these errors were encountered: