diff --git a/components/tooltip/index.tsx b/components/tooltip/index.tsx index 3083204085..3fc33398ea 100644 --- a/components/tooltip/index.tsx +++ b/components/tooltip/index.tsx @@ -138,7 +138,7 @@ class Tooltip extends React.Component { display: 'inline-block', // default inline-block is important ...picked, cursor: 'not-allowed', - width: element.props.block? '100%' : null, + width: element.props.block ? '100%' : null, }; const buttonStyle = { ...omitted,