mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Fix value assignment of text area input
This commit is contained in:
committed by
Winston Chang
parent
680b2323d5
commit
3dee62105e
@@ -35,7 +35,7 @@ textAreaInput <- function(inputId, label, value = "", width = NULL,
|
||||
div(class = "form-group shiny-input-container",
|
||||
style = if (!is.null(width)) paste0("width: ", validateCssUnit(width), ";"),
|
||||
label %AND% tags$label(label, `for` = inputId),
|
||||
tags$textarea(id = inputId, class = "form-control", value = value,
|
||||
placeholder = placeholder)
|
||||
tags$textarea(id = inputId, class = "form-control", placeholder = placeholder,
|
||||
paste(value, collapse = "\n")
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user