MudBlazor/MudBlazor

Rating control still applies hover CSS when ReadOnly=true

Chiusa

#13.265 aperta il 2 giu 2026

 (0 commenti) (0 reazioni) (0 assegnatari)C# (1631 fork)batch import
buggood first issue

Metriche repository

Star
 (10.394 stelle)
Metriche merge PR
 (Merge medio 6g 6h) (108 PR mergiate in 30 g)

Descrizione

Before reporting

  • I searched existing issues
  • I tried in private/incognito browser

What went wrong?

The rating/star control has a setting ReadOnly=true, which removes all interactions with the control.

However, if you mouse-over the stars, they still change with the hover CSS, filling in solid yellow and growing larger. If it is properly readonly, they should not have the hover style applied.

Reproduction link

https://try.mudblazor.com/snippet/i4_3TczM0ytKrMovkrfxLU0JSizJzEtXCEpNTPHPy6m0VSopKk1VUghOzUlNLklNCUvMKU21VTJSUtC3AwA

Reproduction steps

To see this happen, just go to the MudBlazor Rating docs page or the snippet above, and move your mouse over the Read-Only version of the control.

Version (bug)

v9.5

Version (working)

No idea.

Environment

Chrome

Blazor rendering mode

WASM

Guida contributor