-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Copy link
Labels
Pillar: Complete Blazor WebPriority:2Work that is important, but not critical for the releaseWork that is important, but not critical for the releaseaffected-fewThis issue impacts only small number of customersThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-component-modelAny feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc)Any feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc)feature-razor.languagehelp candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamseverity-nice-to-haveThis label is used by an internal toolThis label is used by an internal tool
Milestone
Description
bind-value-oninput or bind does not work with contenteditable divs
Bug Description
In the below code, the expectation is as and when I edit the div content I need to update the model so that I can then save it back to Database.
To Reproduce
Steps to reproduce the behavior:
- Using the latest preview version of ASP.NET Core 3
- Run the below code
<div contenteditable="true" bind-value-oninput="@contentEditableText">
You can Edit this Text
</div>
@contentEditableText
@functions { string contentEditableText = "You can Edit this Text"; } - As I Type something in the editable div, I need to see the same reflected in the body, but it does not happen that way. The OnChange event does not fire automatically.
Expected behavior
OnChange Event needs to fire and changes in editable div should be bound to the model.
Screenshots
piraces, JinShil, JanKinable, saber-wang, user72356 and 49 moreSommerEngineering and abdelhakim94Copilot
Metadata
Metadata
Assignees
Labels
Pillar: Complete Blazor WebPriority:2Work that is important, but not critical for the releaseWork that is important, but not critical for the releaseaffected-fewThis issue impacts only small number of customersThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-component-modelAny feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc)Any feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc)feature-razor.languagehelp candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamseverity-nice-to-haveThis label is used by an internal toolThis label is used by an internal tool

