gilbarbara / react-joyride

Create guided tours in your apps
https://react-joyride.com/
MIT License
6.64k stars 519 forks source link

Using floaterProps.getPopper stops lifecycle events from triggering #875

Closed a1994lex closed 6 months ago

a1994lex commented 1 year ago

🐛 Bug Report

I am trying to use the getPopper attribute in floaterProps to determine the final placement of my tooltip as determined by popperjs/@core. When I provide the getPopper attribute in floaterProps for react-joyride, each step in my tour closes after the next button is clicked. It looks like the lifecycle events are not getting updated.

To Reproduce

Add the getPopper prop to the Joyride component: <Joyride floaterProps={{ getPopper: () => {} }} ... />

Expected behavior

When advancing to the next step, the tour automatically opens the next tooltip,

Actual behavior

With the prop getPopper added, the next tooltip does not open automatically when advancing to the next step.

Link to code sandbox

https://codesandbox.io/s/affectionate-greider-3lhotn?from-embed

gilbarbara commented 6 months ago

Fixed in 2.7.2 Thanks