Skip to content

Commit 1031e46

Browse files
authored
fix: table scroll.x throw error when use expandedRowRender (#3626)
表头固定与展开行不存在冲突,结合使用时不应该报错
1 parent 76d8408 commit 1031e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/table/Table.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default {
141141
// this.columns = props.columns || normalizeColumns(props.children)
142142
const props = getOptionProps(this);
143143
warning(
144-
!props.expandedRowRender || !('scroll' in props),
144+
!props.expandedRowRender || !('scroll' in props) || !props.scroll.x,
145145
'`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time.',
146146
);
147147
this.CheckboxPropsCache = {};

0 commit comments

Comments
 (0)