@luminati-io/uikit 6.2.3 → 6.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -46095,6 +46095,9 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
46095
46095
 
46096
46096
 
46097
46097
 
46098
+ var isPrimitiveElement = function isPrimitiveElement(element) {
46099
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement(element) && typeof element.type == 'string';
46100
+ };
46098
46101
  var _Tooltip = function Tooltip(_ref) {
46099
46102
  var children = _ref.children,
46100
46103
  tooltip = _ref.tooltip,
@@ -46172,7 +46175,7 @@ var _Tooltip = function Tooltip(_ref) {
46172
46175
  update = _usePopper.update;
46173
46176
  var tooltipRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
46174
46177
  var acceptsRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
46175
- return (0,react_is__WEBPACK_IMPORTED_MODULE_3__.isForwardRef)(children);
46178
+ return (0,react_is__WEBPACK_IMPORTED_MODULE_3__.isForwardRef)(children) || isPrimitiveElement(children);
46176
46179
  }, [children]);
46177
46180
  if (visible && tooltip != tooltipRef.current && typeof update == 'function') update();
46178
46181
  tooltipRef.current = tooltip;