Skip to content

Blazor: add a @bind-value:before event #54916

@BISmb

Description

@BISmb

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I would like to specify a before binding function so I can capture state before a binding operation is performed

Describe the solution you'd like

I think since @bind-Value:after exists as an attribute for various inputs than @bind-Value:before would not seem out of place.

Additional context

I would like to capture pre-binding changes for models and implement "undo" functionality. This would replace INotifyProperyChanged within blazor for this use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions