Skip to content

Commit 167b768

Browse files
author
cjmafei
committed
[CTable]fix:表格行禁用时tooltip报错
1 parent a806c62 commit 167b768

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/c-table/js/rowTooltip.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ class RowTooltip extends Component {
5454
);
5555

5656
if (tooltipEle) {
57+
const checkboxEle = targetRow.querySelector(`.${prefixCls}-checkbox-disabled`);
58+
const radioEle = targetRow.querySelector(`.${prefixCls}-radio-input[disabled]`);
5759
const tooltipStyle = getTooltipPositionInBody(
5860
tooltipEle,
59-
targetRow.querySelector(`.${prefixCls}-checkbox-disabled`),
61+
checkboxEle || radioEle,
6062
'top-left',
6163
);
6264

0 commit comments

Comments
 (0)