Skip to content

Conversation

joriverm
Copy link
Contributor

i took a page out of FluentUI's book and noticed that they also make the field identifier if only ValueChanged is given

https://github.com/microsoft/fluentui-blazor/blob/dev/src/Core/Components/Base/FluentInputBase.cs#L315-L322

this allows validations to work if the user makes a one way binding (Value=@someProperty) and fills in ValueChanged(ValueChanged=@(value => SomeProperty=value)). we have come across the need to fill in the expression a few times in our application, so i have made a PR to help us (and anyone else) make validations work faster :)

this was tested in the RequiredValidatorDropDown.razor by changing @[email protected] in TValue=string [email protected] ValueChanged=@(value => model.CategoryName=value) and worked nicely as both validations triggered.

@enchev enchev merged commit 4dece2e into radzenhq:master Sep 22, 2025
1 check passed
@joriverm joriverm deleted the feature/fieldidentifier branch October 1, 2025 08:48
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

Successfully merging this pull request may close these issues.

2 participants