Closed MokeEire closed 2 years ago
Thanks for the report. There is a known issue in the underlying javascript library (maybe it's not widely known, but I've noticed it in the past) where any <button>
tag triggers the modal to close. I just looked at shinyWidget's implementation of radio buttons and unfortunately it uses button tags, which is why this fails. I don't think this is fixable.
I added a note to the readme about this issue
Interacting with shinyWidgets'
radioGroupButtons()
within ashinyalert()
modal is closing the dialog box.Below is the code for two inputs inside a
shinyalert()
, one usingradioButtons()
which will not cause the modal to close, and the other usingradioGroupButtons()
which will cause the modal to close.Let me know if this is enough code to diagnose the issue. I am building a modular shiny app so I didn't want to share everything and overcomplicate things, but I can provide more context if necessary. The
shinyalert
is being called inside anobserveEvent
, which observes anactionButton
.