gilbarbara / react-joyride

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

continuous make next tooltip position weirdly #889

Closed jt6677 closed 1 year ago

jt6677 commented 1 year ago

🐛 Bug Report

"react": "^18.2.0", "react-joyride": "^2.5.3",

with continuous, the next will fail to lock on the element. The window would appear on the bottom. If continuous is disabled, the next will lock on the element properly.

Get round:

setState({ run: false,}) setTimeout(() => { setState({ run: true, }) }, 100) setState({ stepIndex: index + 1 })

turn the run off then on then go to the next, this will somehow make it lock on properly.

gilbarbara commented 1 year ago

@jt6677

Please provide a https://codesandbox.io/ demo or similar with a minimal reproducible example.