You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Embed the editor within the Validations (this is required in my solution due to structure of components)
Editor is configured to use bind-Value and Field properties
When the editor is focused, any keypress results in the cursor being returned to the start of the editor and therefore text appears 'backwards' when typed. I strongly suspect this is because of the editor being refocused on each keypress due to something that is triggered by the validation checking.
<Form>
<Validations Model="@this" ValidateOnLoad="false">
@*This TextEdit just here to demonstrate relationship to other components in form*@
<Validation>
<Field>
<TextEdit @bind-Text="SingleLineText">
<Feedback>
<ValidationError/>
</Feedback>
</TextEdit>
</Field>
</Validation>
<Editor Field="@(() => TinyMceRichText)" @bind-Value="TinyMceRichText"></Editor>
</Validations>
</Form>
@code{
[Required]
public string? SingleLineText { get; set; }
public string? TinyMceRichText { get; set; } = "Hello";
}
The text was updated successfully, but these errors were encountered:
So this only happens when the validations component has a Model or an EditContext. I'm not sure how blazorise works this out but it would take deep dive into the code to figure out what's happening here.
I'm not sure the editor is being refocused, but it might be re-rendering that bit after the validation occurs. Why this only happens with a Model/EditContext is beyond me. Any help from a blazorise expert is welcome
I see the same issue when using the Editor in a column using the RadzenDataGrid control. The editor works correctly in version 0.0.8, but breaks in 0.0.9 and later. Repro project is available here - https://github.com/jcbohlin/TinyMceBackwardsRadzenDatagridRepro
Hi, I have run into a very strange issue when using the component inside Blazorise.
Steps to repro (also see repro link here - https://github.com/gdunit/TinyMceBackwardsRepro)
The text was updated successfully, but these errors were encountered: