Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3567.
Scrollbar 卸载或因
zIndex变化重新初始化时,旧 PerfectScrollbar 实例没有销毁,导致 document 上的 keydown 监听保留;重新初始化还会留下重复的滚动条轨道。现在初始化 effect 会在 cleanup 中销毁自己创建的实例。zIndex重新初始化和普通axes更新。@hi-ui/scrollbarpatch changeset。验证:
git diff --check通过。ESLint 保留原有的settingseffect 依赖警告。zIndex更新后只保留 2 条轨道,键盘滚动仍有效,未出现页面异常。本地验证使用隔离依赖和已发布的 HiUI 5.0 配套工具包,并应用仓库原有的 PerfectScrollbar 补丁。验证聚焦 Scrollbar,未运行完整 monorepo 构建或 Storybook。