Skip to content

Commit 684cc4f

Browse files
committed
feat: add ability to hide tip in tooltip
1 parent 3ca6615 commit 684cc4f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/Tooltip/Tooltip.jsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ export default class Tooltip extends React.PureComponent {
113113
children,
114114
getContainer,
115115
theme,
116-
paddingSize
116+
paddingSize,
117+
tip
117118
} = this.props;
118119

119120
if (!children) {
@@ -127,7 +128,7 @@ export default class Tooltip extends React.PureComponent {
127128
const dialogProps = {
128129
...this.props,
129130
startingEdge: justify,
130-
tooltip: true,
131+
tooltip: tip,
131132
content,
132133
getContainer: getContainer || this.getContainer,
133134
moveBy,
@@ -153,5 +154,6 @@ Tooltip.defaultProps = {
153154
animationType: "expand",
154155
withoutDialog: false,
155156
containerSelector: "#tooltips-container",
156-
immediateShowDelay: null
157+
immediateShowDelay: null,
158+
tip: true
157159
};

0 commit comments

Comments
 (0)