Replies: 1 comment
-
Hey @RenanMev For your case I'd suggest to use the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, my name is Renan, and I need someone's help. English is not my native language, so I’ll need to translate a few things. Here we go. Currently, I'm working on a full onboarding process where the data comes directly from the database, and I handle it on the frontend. However, it has some extra functionalities like clicking buttons and redirecting. All data is fetched directly from the database; I just handle it on the frontend.
Problem: I have the following issue: I need to handle some errors on the frontend and display them on the screen in some way. For the current error, I need to check if the target isn’t found, and if so, set the target to "body" and change the placement to "center." However, I’m struggling with this. Note that my code is legacy, so some things are hard to change.
Current Approach: I'm trying to handle it in the callback function by checking if the target is valid. If it is, it just proceeds. If not, it changes the target to "body." However, I believe that due to the library's lifecycle, I'm unable to change it correctly. It does change and displays on the screen, but it's broken – it lacks an overlay, and I can’t move to the next step, etc.
Beta Was this translation helpful? Give feedback.
All reactions