question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Rating] Rating with value=null shows the selected value

See original GitHub issue

Duplicates

  • 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 image

Expected behavior 🤔

the rating will always show 0

Steps to reproduce 🕹

https://codesandbox.io/s/ivct8?file=/demo.js

Steps:

  1. add the component <Rating name="no-value" value={null} />
  2. click the rating 3.click the tab to another web page
  3. 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:open
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LukasGermcommented, Feb 14, 2022

So I updated my pullrequest according to your help, you can check it out. @shashank1207

1reaction
oliviertassinaricommented, Feb 12, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found