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

fix( list-module issue 5821): ol ul list 嵌套 编辑区及 HTML 没有正确展示 bug #5838

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cycleccc
Copy link

相关 issue #5821 #5709

@cycleccc
Copy link
Author

bug成因:

list 在退格时没有考虑同级连续节点的 ordered 导致 编辑区 和 HTML 的 渲染错乱

解决思路:

对于编辑区的bug,在跟踪退格事件时查看是否有同级连续兄弟 list 节点 有的话 判断 ordered 不同则改变 ordered
对于HTML的bug,在编辑区形成正确DOM后同样判断同级连续 的 list 的 ordered 保持一致

@cycleccc cycleccc mentioned this pull request May 7, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant