[Rating] Rating with value=null shows the selected value
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
click the [no rating given] rating component. click another brower tab to show other page return the page, the raring will show the value you last clicked
Expected behavior 🤔
the rating will always show 0
Steps to reproduce 🕹
https://codesandbox.io/s/ivct8?file=/demo.js
Steps:
- add the component <Rating name="no-value" value={null} />
- click the rating 3.click the tab to another web page
- back to the page to see the rating
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
why am i getting null pointer exception when trying to set a ...
I believe it is because you are setting the content view after you set up the RatingBar. Try moving setContentView(R.layout.activity_recipe);.
Read more >Select field null value #771 - laravel/nova-issues - GitHub
For a model with rating = null the Select gives a prompt: 'Choose an option' with no value. And I can't save the...
Read more >SQL exercises on movie Database: Find the name of all ...
From the following table, write a SQL query to find all reviewers whose ratings contain a NULL value. Return reviewer name.
Read more >How to join with null value? - mysql - DBA Stack Exchange
How I can get all posts with null value where the post does not have a rating? select posts.id, posts.user_id, posts.name, posts.created_at, ...
Read more >Handle Null Numeric Values - Salesforce Help
When no default value is specified, CRM Analytics replaces blanks in numeric columns with 0 or null based on whether you enable null...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I updated my pullrequest according to your help, you can check it out. @shashank1207
@LukasGerm I don’t know. My point is that it’s something that we have seen before. I think that it simply means that this is not a trivial problem. At first sight, the current behavior looks expected.