-
Notifications
You must be signed in to change notification settings - Fork 440
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
Sanity locks up when using accented characters, typing words like "café" or "citroën" #2436
Comments
I'm getting a similar issue when typing é in a portable text field. I get the error:
If I try to highlight and delete the text containing the é, the studio crashes. Refreshing and returning to the post, I can delete it. @sanity/cli 2.8.0 (up to date) |
Thank you! |
Also having the problem with What I notice having the problem:
Full version list:
I wouldn't mind giving a shot to fixing it if I could have some pointers. |
Hello, breaks for me as well. For now only way to get around it is copy-pasting our spanish texts from another editor; same "cannot resolve Slate point" bug. If I type an accent, Studio gets starts misbehaving seriously or outright crashes. |
Hi! I'm not able to reproduce this, it seem to be fixed as far as I can tell. Can you please try our latest version? |
Hi! I was able to still reproduce the problem on 2.22.x Here's what
Configs for that specific field {
name: 'content',
title: 'Contenu',
type: 'array',
of: [{ type: 'block' }, inlineImage],
},
const inlineImage = {
type: 'image',
options: {
hotspot: true,
},
fields: [
{
name: 'size',
title: 'Grandeur',
type: 'string',
placeholder: 'grande ou petite',
},
{
name: 'credit',
title: 'Crédit',
type: 'string',
},
],
} And a screen capture of what is happening. It does happen all the time but often enough that it causes problem when writting and breaking your text. Notice the carret position that goes back to the beggining of the line and some times doesn't want to move from there unless you refresh. Screen.Recording.2021-11-18.at.1.56.55.PM.mov |
Dang! We will find a solution to this soon. Thank you for the excellent report! |
If I can provide anything more or help in any way I'll be happy to! |
This should be fixed in the latest version. Can you confirm please? |
Thanks @francisprovost! Yeah that's an issue we already know about. It's actually a bug in Google's DiffMatchPatch JS-library. See #1643 (comment) Closing this then. |
Perfect thanks @skogsmaskin |
Describe the bug
If you write text using accented characters like: "kafé", "òg" or "vêr" (Norwegian Nynorsk) the editor locks up. The only way to continue typing is to refresh the window.
Our client reports this as being a big problem. The editor freezes several times for each article
A clear and concise description of what the bug is.
To Reproduce
Load up a Studio with portable text. Write text containing accented characters. After a while the editor freezes.
Expected behavior
The editor should handle accented characters and not freeze.
Which versions of Sanity are you using?
@sanity/cli 2.7.4 (latest: 2.8.0)
@sanity/base 2.8.0 (up to date)
@sanity/code-input 2.2.6 (up to date)
@sanity/components 2.2.6 (up to date)
@sanity/core 2.8.0 (up to date)
@sanity/dashboard 2.7.0 (up to date)
@sanity/default-layout 2.8.0 (up to date)
@sanity/default-login 2.8.0 (up to date)
@sanity/desk-tool 2.8.0 (up to date)
@sanity/production-preview 2.2.6 (up to date)
@sanity/vision 2.8.0 (up to date)
What operating system are you using?
Mac OS 11.2.3
Which versions of Node.js / npm are you running?
6.14.11
v14.15.0
Additional context
Our client uses Norwegian Nynorsk in all content. First time for us, so never experienced this problem before.
The text was updated successfully, but these errors were encountered: