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: scrollToElem problem #5023

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

Conversation

60late
Copy link

@60late 60late commented Nov 2, 2022

scrollToElem方法中,直接使用id选择器时,如果其他地方存在相同id,则会出现报错无法正确滚动
(虽然同一页面多个相同id使用是不正确的,但是仍然很容易就被不知情的开发人员触发)
所以把id的选取范围限定在了[data-slate-editor] 中

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.

1 participant