fix: table crashes if expandable set without scroll #765
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.
采用了Junlin-Tommy在原PR提出的修改方案,减少对代码逻辑的改动。补充了测试用例。
修复了issue#755第一点提及的问题。
antd的官方文档中并未提及expandable.fixed 和 scroll 两属性需要同时设置,因此将scroll属性置空不应导致整个table crash。采用了默认的auto方式设置水平方向的scroll。