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
TextEdit jump caret to the end of the text for every typed char, when ChangeTextOnKeyPress is true. #733
Comments
Happens to me too |
This is the same problem as #655. It is also reported on dotnet/aspnetcore#20067 Basically as Steve has mentioned, the problem is that Blazor needs to update component value. And by doing so browser will automatically refresh it and the cursor will move to the end. It seems there is a workaround posted. I will try to see if it can be copied to Blazorise. |
@ianido @WillianGruber Guys, I have started this ticket and now I'm trying to reproduce the bug but for me everything works. I would swear it was failing before. Coould be that Blazor team has changed somethings in latest version(s) and it's working now. Can you please check again if it works on your side?? Just make sure that you have latest version of Blazor 3.2 and Blazorise 0.9.0.3! |
I'll try to reproduce it. |
@WillianGruber Did you test it? If everything works I would close the issue. |
By the way, this only happens in a hard to render page. In this case, I have that old IconPicker I made. (I removed "@if (Modal.Visible)" temporally to reproduce the issue) |
@WillianGruber Thanks, I managed to reproduce it now. |
If I have options.ChangeTextOnKeyPress = true;
The behavior of TextEdit jump the carent to the end of the text on every change, making impossible to edit the text properly (like insert letters at front or middle):
<TextEdit @bind-Text="@this.Criteria.OpenDateFromText" />
I Replaced temporarily by
<input @bind-value="@this.Criteria.OpenDateFromText" @bind-value:event="oninput" class="form-control" />
The text was updated successfully, but these errors were encountered: