RadzenNumeric inconsistently resets Value when out of Max/Min Bounds #941

Open
opened 2026-01-29 17:46:39 +00:00 by claunia · 0 comments
Owner

Originally created by @uflowie on GitHub (Jul 31, 2023).

Describe the bug
When setting Min and/or Max on a RadzenNumeric, the resetting of the Value depends on the previous value. If the previous value was equal to the Max or Min, a new value that is higher than Max or lower than Min will not be reset to Max or Min in the UI.

To Reproduce
Use the following minimal reproducible snippet:

@page "/"

<Radzen.Blazor.RadzenNumeric TValue="int" @bind-Value="Value" Max="10"/>

Value is @Value

@code {
    private int Value { get; set; } = 1;
}
  1. Enter 13 into the input field
  2. Observe -> the value is reset to 10
  3. Enter 13 into the input field again

Expected behavior
The value is reset to 10.

Observed behavior
The EventCallback is not invoked but the input element shows 13.

Desktop

  • OS: Windows
  • Browser: Chrome
  • Version: Radzen Blazor 4.14.4, Latest Chrome, Latest Windows
Originally created by @uflowie on GitHub (Jul 31, 2023). **Describe the bug** When setting Min and/or Max on a RadzenNumeric, the resetting of the Value depends on the previous value. If the previous value was equal to the Max or Min, a new value that is higher than Max or lower than Min will not be reset to Max or Min in the UI. **To Reproduce** Use the following minimal reproducible snippet: ```razor @page "/" <Radzen.Blazor.RadzenNumeric TValue="int" @bind-Value="Value" Max="10"/> Value is @Value @code { private int Value { get; set; } = 1; } ``` 1. Enter 13 into the input field 2. Observe -> the value is reset to 10 3. Enter 13 into the input field again **Expected behavior** The value is reset to 10. **Observed behavior** The EventCallback is not invoked but the input element shows 13. **Desktop** - OS: Windows - Browser: Chrome - Version: Radzen Blazor 4.14.4, Latest Chrome, Latest Windows
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#941