-
Notifications
You must be signed in to change notification settings - Fork 29
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
Spellcheck blinking #193
Comments
@ilya2204 Thanks for your feedback, I have understood the cause of this problem, I will give ideas as soon as possible. |
Hi @ilya2204 I solved this problem by referring to the idea of slate-react, but this solution is a bit sloppy, and the current solution has some problems. The trigger timing of the ngModelChange event has changed. The DOM has been updated when ngModelChange was executed in the past, but now it depends on The browser's default behavior (the default behavior of the beforeinput event is no longer blocked), so the inserted text has not been updated when ngModelChange is executed, this is a difference point, if this is acceptable, you can use this scheme for now. I'm not ready to merge it into the master branch yet, may have to think about it again. |
Thanks for solving the problem. I tested and in English spellchecking really doesn't blink anymore. The only thing I found a bug with the fact that some events (moving with the arrows / cutting text through the ctrl+x and maybe others) do not cause a redraw, but this was fixed by adding the line UPD I also noticed a problem with inserting a new line on the shift+enter event via |
Hi @ilya2204 |
@pubuzhixing8 Slate.Angular.Examples.-.Angular.view.layer.for.Slate.-.Google.Chrome.-.15.April.2022.mp4 |
@ilya2204 So I added an extra condition to the spellcheck. |
@pubuzhixing8 |
And maybe add more complex character input checks. |
Good suggestion, I am also considering removing the character check, all English input will follow the default behavior of the browser. |
Hi @pubuzhixing8 Key.Displayer.-.15.May.2022.mp4 |
Hi! A few months ago, an update came out in slate-react that solved the problem of a blinking spellcheck when typing. Are there any plans to move this fix into your project, or perhaps some advice on how I could fix this?
The text was updated successfully, but these errors were encountered: