-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
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)
- Create Blazorise Form then Validations components
- 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";
}
yoshiyes