Blazorise: TextEdit jump caret to the end of the text for every typed char, when ChangeTextOnKeyPress is true [2]

Created on 30 Jun 2020  路  12Comments  路  Source: stsrki/Blazorise

Reopening TextEdit jump caret to the end of the text for every typed char, when ChangeTextOnKeyPress is true. #733
in a new issue.

Unfortunately the bug persists, just tested with 0.91

Bug 馃悶

All 12 comments

Try clearing the cache. Maybe you didn't get latest blazorise.js file.

I tried. Ctrl+F5 and Ctrl+shift+R on firefox.
When holding the "." key, it still flickers. Clicking the middle of "........................" and holding 'A' key, the first few A stay inside, but the later ones go to the end.
Result: ".........aa........aaaaaa". It behaves like the gif in #733

I'm trying it on SSB and I cannot reproduce it.

Sorry, what is SSB?

SSB = Server-Side Blazor.

Tested also on WebAssembly, and although it's somewhat slower it still works for me.

I can also reproduce the bug on 0.9.1 with Server-Side Blazor. I checked in Firefox and Chrome and made sure that the blazorise.js in the browser contains the setCaret and getCaret functions from the fix.

On my local machine everything just works. Now I have I tried it on the demo app that is located on the private server and on there it is not working. The problem as far as I can see, can only be reproduced on SSB apps. I guess it is because SignalR and JSInterop are out of sync when you type too fast.

Would it be a "solution", if instead of updating continuously, the whole thing would be delayed / throttled? Perhaps optional?

@cubed-it it might work. I will need to investigate it.

@cubed-it I'm experimenting with delaying the input and I must say it works really great. And without any JavaScript. Now I need to find the right delay value so it's not too long or too short. But just in case I will also add a property to customize it.

@stsrki that sounds great. bug fixed and perfromance improved! thanks a lot for your great work!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robalexclark picture robalexclark  路  4Comments

brettwinters picture brettwinters  路  5Comments

danlbb picture danlbb  路  4Comments

njannink picture njannink  路  4Comments

john-cullen picture john-cullen  路  3Comments