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.
v4 中的下拉框在动画启动时通过
transform
设置scaleY: 0
,导致onResize
事件触发时设置容器高度为0
而让滚动条 thumb 高度坍缩成0
。而 v5 中,动画是从
scaleY: 0.8
开始。倒是 thumb 高度虽然不符合预期,但是仍然可以见到。其中,不同 antd 版本的滚动条其实都是可以正常滚动。这个计算只影响 thumb 展示高度。
fix ant-design/ant-design#45078