Skip to content

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