From 47ebc50c67f1781ed9caad1cee73010285378ff3 Mon Sep 17 00:00:00 2001 From: Colin Read Date: Wed, 24 Feb 2021 15:23:06 +0000 Subject: [PATCH] fix(tooltip): tooltip type warning due to incorrect use of oneOf --- react/src/lib/Tooltip/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/src/lib/Tooltip/index.js b/react/src/lib/Tooltip/index.js index 38d9e7e0c1..be0b6fa931 100644 --- a/react/src/lib/Tooltip/index.js +++ b/react/src/lib/Tooltip/index.js @@ -60,7 +60,7 @@ Tooltip.propTypes = { /** @prop Optional object for Popover Component props | {} */ popoverProps: PropTypes.object, /** @prop Tooltip text | '' */ - tooltip: PropTypes.oneOf([PropTypes.object, PropTypes.string]), + tooltip: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), /** @prop Set the action which triggers the Tooltip | 'MouseEnter' */ tooltipTrigger: PropTypes.oneOf(['MouseEnter', 'Click', 'Focus']), /** @prop Set the Tooltip width | null */