Skip to content

Commit

Permalink
fixes #89: we claimed that dashboardPage would try to extract the pag…
Browse files Browse the repository at this point in the history
…e's title from dashboardHeader (if the title is not provided directly to dashboardPage); however, we were selecting the wrong child of the header tag object
  • Loading branch information
bborgesr committed Apr 20, 2017
1 parent 22bc8e4 commit a243e1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
shinydashboard 0.5.3.9000
=========================

* Fixed [#89](https://github.com/rstudio/shinydashboard/issues/89): We claimed that `dashboardPage()` would try to extract the page's title from `dashboardHeader()` (if the title is not provided directly to `dashboardPage()`); however, we were selecting the wrong child of the header tag object ([#202](https://github.com/rstudio/shinydashboard/pull/202))

* Fixed [#129](https://github.com/rstudio/shinydashboard/issues/129): Trigger shown/hidden event for Shiny outputs in the sidebar. ([#194](https://github.com/rstudio/shinydashboard/pull/194))

* Fixed [#73](https://github.com/rstudio/shinydashboard/issues/73): add `collapsed` argument to `dashboardSidebar()`, which allows it to start off collapsed. ([#186](https://github.com/rstudio/shinydashboard/pull/186))
Expand Down
2 changes: 1 addition & 1 deletion R/dashboardPage.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dashboardPage <- function(header, sidebar, body, title = NULL,
skin <- match.arg(skin)

extractTitle <- function(header) {
x <- header$children[[1]]
x <- header$children[[2]]
if (x$name == "span" &&
!is.null(x$attribs$class) &&
x$attribs$class == "logo" &&
Expand Down

0 comments on commit a243e1c

Please sign in to comment.