Skip to content

Commit

Permalink
try to hackily work around #74
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Apr 14, 2023
1 parent 7f208ef commit a2e40f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/shinyalert.R
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ shinyalert <- function(
if (is.null(session$userData$.shinyalert_added) || !session$userData$.shinyalert_added) {
shiny::insertUI("head", "beforeEnd", immediate = TRUE, ui = getDependencies())
session$userData$.shinyalert_added <- TRUE
Sys.sleep(0.1) # hacky workaround for issue https://github.com/daattali/shinyalert/issues/74
}

if (immediate) {
Expand Down

0 comments on commit a2e40f3

Please sign in to comment.