Closed mauromiguelm closed 5 months ago
Cannot reproduce.
Using latest (github version) of shinyalert and latest version of wizardR
I used the code in app-dev.R
Here's a video to show I was able to open a shiny alert, and then I was able to lock and unlock the wizard
Hello,
First, thanks for the open source contributions!
Summary:
I am seeing some conflicts of shinyalerts with wizardR. When any instance of shinyalert is opened in a shiny session, wizardR loses the ability to lock/unlock the wizard.
We see that when a shinyalert is loaded, the wizard is incorrectly initialized, pointing to some conflict between the two packages. See chrome console log below.
If you could point towards a solution, I will be happy to take over!
Example:
You can find a REPREX here: https://github.com/mauromiguelm/wizardR/tree/bug-shinyalert or you can install directly with
R -e 'devtools::install_github("mauromiguelm/wizardR@bug-shinyalert")'
Once package is installed, run
make dev
logs:
Click to expand full log
``` javascript wizard : This item is already defined tooltip.ts:90 Uncaught TypeError: Cannot read properties of null (reading 'content') at ee.connectedCallback (tooltip.ts:90:48) at Object.cleanEvents (wizard.min.js:1:14434) at Wizard.init (wizard.min.js:1:2555) at e.initialize (main.js:16:12) at w (init.ts:228:29) at init.ts:313:11 at m (init.ts:2:1357) at Generator.