We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9723a62 commit c86a261Copy full SHA for c86a261
components/tooltip/Tooltip.jsx
@@ -82,7 +82,10 @@ export default {
82
(isAntBtn &&
83
(ele.componentOptions.propsData.disabled ||
84
ele.componentOptions.propsData.disabled === '')) ||
85
- (ele.tag === 'button' && ele.data && ele.data.attrs.disabled !== false)
+ (ele.tag === 'button' &&
86
+ ele.data &&
87
+ ele.data.attrs &&
88
+ ele.data.attrs.disabled !== undefined)
89
) {
90
// Pick some layout related style properties up to span
91
// Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254
0 commit comments