Fixed a bug that textAreaInput() doesn't work as expected for relative width.

This commit is contained in:
shrektan
2018-05-07 16:08:05 +08:00
parent 9c3a0c86ca
commit 03079f0a14
2 changed files with 4 additions and 0 deletions

View File

@@ -61,6 +61,9 @@ This is a significant release for Shiny, with a major new feature that was nearl
* Fixed [#2021](https://github.com/rstudio/shiny/issues/2021): Memory leak with `reactiveTimer` and `invalidateLater`. ([#2022](https://github.com/rstudio/shiny/pull/2022))
* Fixed a bug that `textAreaInput()` doesn't work as expected for relative `width`. (Thanks, @shrektan [#2049](https://github.com/rstudio/shiny/pull/2049))
### Library updates
* Updated to ion.rangeSlider 2.2.0. ([#1955](https://github.com/rstudio/shiny/pull/1955))

View File

@@ -56,6 +56,7 @@ textAreaInput <- function(inputId, label, value = "", width = NULL, height = NUL
div(class = "form-group shiny-input-container",
label %AND% tags$label(label, `for` = inputId),
style = if (!is.null(width)) paste0("width: ", validateCssUnit(width), ";"),
tags$textarea(
id = inputId,
class = "form-control",