diff --git a/src/Tippy.js b/src/Tippy.js index bc21ee6..aeb559e 100644 --- a/src/Tippy.js +++ b/src/Tippy.js @@ -30,7 +30,8 @@ function Tippy({ isVisible, isEnabled = true, ignoreAttributes = true, - ...nativeProps + multiple = true, + ...restOfNativeProps }) { const [isMounted, setIsMounted] = useState(false) const containerRef = useRef(ssrSafeCreateDiv()) @@ -39,8 +40,9 @@ function Tippy({ const isControlledMode = typeof isVisible === 'boolean' const options = { - ...nativeProps, ignoreAttributes, + multiple, + ...restOfNativeProps, content: containerRef.current, } diff --git a/test/Tippy.test.js b/test/Tippy.test.js index e63ff82..696b9b7 100644 --- a/test/Tippy.test.js +++ b/test/Tippy.test.js @@ -168,14 +168,15 @@ describe('', () => { test('nesting', () => { render( - - - + + + , ) + expect(document.querySelectorAll('.tippy-popper').length).toBe(3) }) test('props.isEnabled initially `true`', () => {