daattali / shinyalert

🗯️ Easily create pretty popup messages (modals) in Shiny
https://daattali.com/shiny/shinyalert-demo/
Other
241 stars 26 forks source link

Warning: Warning in html && nzchar(params[["text"]]) : 'length(x) = 2 > 1' in coercion to 'logical(1) #72

Closed amvdkreeke closed 1 year ago

amvdkreeke commented 1 year ago

When using your shinyalert to create a modal with "fancy" inputs, as shown in the example below ( Shiny inputs/outputs in modals), it gives the following warning.

shinyalert(html = TRUE, text = tagList(
      textInput("name", "What's your name?", "Dean"),
      numericInput("age", "How old are you?", 30)
    ))
Warning in html && nzchar(params[["text"]]) :
  'length(x) = 2 > 1' in coercion to 'logical(1)

It will only do this when there are more than two elements in the tagList().

amvdkreeke commented 1 year ago

After installing the package from github directly, it was gone.