Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all OnChange function virtual you can overide this functions. #1677

Open
teunlielu opened this issue Sep 5, 2024 · 0 comments
Open

Comments

@teunlielu
Copy link

teunlielu commented Sep 5, 2024

Is your feature request related to a problem? Please describe.
In the current setup you now program the following:
simple example:
public override string Value { get => base.Value; set { if (value is null) { ChangeEventArgs args = new ChangeEventArgs(); args.Value =""; OnChange(args); // Directly to base.Value you will lose communication with your binding. } else { base.Value = value; } } }

Describe the solution you'd like
Make all OnChange function virtual you can overide this functions.
protected override async Task OnChange(ChangeEventArgs args) { if(args.Value is null) { args.Value = ""; } await base.OnChange(args); }

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

No branches or pull requests

1 participant