React Joyride tour does not display on initial load in my event creation form #1103
Replies: 2 comments 1 reply
-
Hey @PierrealFOY Since this library works with other components, it doesn't look like a bug but an implementation issue. So, I'm moving this to discussions. Does setting the To help, I would need a minimal reproducible example using stackblitz or codesandbox, which I think would be hard to replicate. |
Beta Was this translation helpful? Give feedback.
-
I also experienced this problem @gilbarbara ... The tour "randomly" decides when to display, which is a little bit hard to replicate. However, here is what I noticed: Durring development, when it doesn't display, I remove the component in the code, HMR kicks in and refresh the page then I re-add the tour component, HMR kicks in again, this time, the tour is rendered. On full page reload, it's a 50/50 chance, sometimes it display, other times it doesn't even when the tour isn't complete yet. In some other scenaious, I get this error. Related to tooltip / popover components in Joyride |
Beta Was this translation helpful? Give feedback.
-
🐛 Bug Report
Hi all ! I'm experiencing an issue where my tour, built with React Joyride, fails to display on the initial load of my event creation form. The tour initializes, but no tooltip or guidance step appears on the screen, even though there are no visible errors in the console. Here’s a summary of the setup and troubleshooting steps taken:
Target Element: I've specified a target element using target:
"[data-tour='eventForm-organism']"
, and the element is present in the DOM when the tour starts. However, the tooltip does not appear.I've created a steps.json file, here is one piece of the structure :
and here is how I add the target in the jsx :
Controlled Mode: The tour is set in controlled mode, and callbacks like onStepChange and onStatusChange are used to monitor its status.
Troubleshooting Steps:
Verified the visibility and rendering of the target element.
Confirmed there are no CSS conflicts or opacity issues in the styles.
Ensured that the state is synchronized with the component lifecycle, avoiding conditional rendering issues.
In another component of my project, the tour i've implemented works perfectly. And my component
DocumentTour
is implemented the same way in both components :Here is the custom component I've created to manage
react-joyride
tour:The logs are well in the components where the tour works but in the one where it does not i just have
Joyride status: running, Step: 0
an nothing appears...The component where the joyride tour fails is too big to be displayed here in the issue. But if needed I can provide more informations.
If you have any insights into potential causes for this behavior or best practices for initializing Joyride in dynamically rendered forms, I’d appreciate your guidance. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions