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

DatePicker hasNextLevel={false} it still allows to select the nextLevel #7229

Closed
1 of 2 tasks
heybart opened this issue Dec 7, 2024 · 2 comments · May be fixed by #7319
Closed
1 of 2 tasks

DatePicker hasNextLevel={false} it still allows to select the nextLevel #7229

heybart opened this issue Dec 7, 2024 · 2 comments · May be fixed by #7319
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)

Comments

@heybart
Copy link

heybart commented Dec 7, 2024

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.14.3

What package has an issue?

@mantine/dates

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

Not applicable – issue is not related to the browser

Describe the bug

When I set hasNextLevel={false} on a DatePicker, it still allows me to select another level. If I set maxLevel="month" it won't show the next level but it still shows as a button with hover and pointer cursor. I would expect no hover and just a regular cursor.

If possible, include a link to a codesandbox with a minimal reproduction

https://codesandbox.io/p/sandbox/smoosh-brook-nff873

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
@rtivital
Copy link
Member

It is an error with prop leak. hasNextLevel prop will be removed with the next patch. To correctly change the level, use maxLevel prop instead.

@rtivital rtivital added the Fixed patch Completed issues that will be published with next patch (1.0.X) label Dec 12, 2024
@rtivital
Copy link
Member

Fixed in 7.15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants