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

Rating component value is mutable even with readOnly prop #4525

Closed
gulebi opened this issue Jul 11, 2023 · 3 comments
Closed

Rating component value is mutable even with readOnly prop #4525

gulebi opened this issue Jul 11, 2023 · 3 comments

Comments

@gulebi
Copy link

gulebi commented Jul 11, 2023

What package has an issue

@mantine/core

Describe the bug

When the value of a rating element changes, it changes with an animation, but when the readOnly prop is added, there is no animation and the value still changes.

What version of @mantine/hooks page do you have in package.json?

6.0.16

If possible, please include a link to a codesandbox with the reproduced problem

No response

Do you know how to fix the issue

No

Are you willing to participate in fixing this issue and create a pull request with the fix

None

Possible fix

No response

@rtivital
Copy link
Member

Based on the demo from the docs, the readOnly prop seems to be working correctly – it prevents user from interacting with the input – https://mantine.dev/core/rating/#read-only

Please provide a sandbox that reproduces the issue

@gulebi
Copy link
Author

gulebi commented Jul 11, 2023

Here is a link to codesandbox, although the @mantine/core version is different, the bug is present on both version 6.0.8 and 6.0.16.

@rtivital
Copy link
Member

Fixed in 6.0.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants