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

[BUG] numbering append with <ol> when the last item deleted #168

Open
donynuransyah opened this issue Feb 10, 2022 · 2 comments
Open

[BUG] numbering append with <ol> when the last item deleted #168

donynuransyah opened this issue Feb 10, 2022 · 2 comments

Comments

@donynuransyah
Copy link

donynuransyah commented Feb 10, 2022

Thank you a ton for your hard work in this library.
I just want to report some issue with the numbering format it's got append with <ol> when I tried to delete the last item, but when I delete it again the <ol> tag disappears.
but if under the numbering we have some words the bug didn't happen.
i thought it had something to do with getAbsoluteIndent or getRelativeIndent
here is the video I tried to reproduce.

bug.numbering.mp4
bugs.numbering.2.mp4
@MaxCiv
Copy link

MaxCiv commented May 1, 2022

It's problem with your google-keyboard.
https://stackoverflow.com/questions/39493066/google-keyboard-mess-up-my-custom-span

@1gravity
Copy link
Owner

This is a known issue but I haven't found a solution yet. It makes sense to delete the last OL because otherwise it would be impossible to go from Ol to regular text (except by clicking the button/icon but that's cumbersome). There are alternative ways like deleting the OL when the user hit the return key (like this Github editor does). The behavior with a regular line of text below (second video) should be consistent though (which it's not).

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

3 participants