From a2e40f3cf729a1a1a081799c11fe18334718dab4 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Fri, 14 Apr 2023 10:50:26 -0400 Subject: [PATCH] try to hackily work around #74 --- R/shinyalert.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/shinyalert.R b/R/shinyalert.R index b8916d8..879170e 100644 --- a/R/shinyalert.R +++ b/R/shinyalert.R @@ -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) {