Skip to content

Commit

Permalink
fix: Set scalar defaults in sidebar_open_on()
Browse files Browse the repository at this point in the history
Fixes #1081
We manually provide values to `rlang::arg_match()`, so vector input values throw
  • Loading branch information
gadenbuie committed Jul 11, 2024
1 parent 1f4ad41 commit b67005a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/sidebar.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ as_sidebar_open_on <- function(open) {
#' or `"always"` (or `NA`). `mobile` also accepts `"always-above"`.
#' @noRd
sidebar_open_on <- function(
desktop = c("open", "closed", "always"),
mobile = c("closed", "open", "always")
desktop = "open",
mobile = "closed"
) {
desktop <- desktop %||% "open"
mobile <- mobile %||% "closed"
Expand Down

0 comments on commit b67005a

Please sign in to comment.