Skip to content
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

Invalid delta Length and also Delta.slice() breaks latin unicode char in two parts e.g. ő #54

Closed
khaled4vokalz opened this issue Jun 24, 2020 · 0 comments

Comments

@khaled4vokalz
Copy link

khaled4vokalz commented Jun 24, 2020

Reproduction Steps:

  1. Enter latin character ő in Quill
  2. delta.length() returns 2
  3. range returns 1 as index if the cursor is after the latin character
  4. delta.slice(0, range.index) returns 'o' only not the whole character

IMO, if the range returns 1 then delta.slice() should also behave accordingly. Now I'm not sure how to correctly split the delta when this type of unicode characters are used as delta

@jhchen jhchen closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants