Skip to content

Commit e847d5a

Browse files
committed
Updates/fixes
1 parent 68a584c commit e847d5a

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

R/bs-theme.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ bootstrap_bundle <- function(version) {
276276
!!!rule_bundles(c(
277277
system_file("components", "accordion.scss", package = "bslib"),
278278
system_file("components", "card.scss", package = "bslib"),
279+
system_file("components", "input_check_search.scss", package = "bslib"),
279280
system_file("components", "value_box.scss", package = "bslib"),
280281
system_file("components", "layout_column_wrap.scss", package = "bslib")
281282
))

R/input-check-search.R

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ input_check_search <- function(id, choices, selected = NULL, placeholder = "🔍
1212
tag <- div(
1313
id = id,
1414
class = "bslib-check-search",
15-
style = css(height = height, width = width),
15+
style = css(
16+
height = validateCssUnit(height),
17+
width = validateCssUnit(width)
18+
),
1619
tags$a(class = "clear-options", role = "button", "Clear all"),
1720
tags$input(
1821
type = "text",
@@ -33,9 +36,9 @@ input_check_search <- function(id, choices, selected = NULL, placeholder = "🔍
3336

3437

3538
#' @export
36-
update_check_search <- function(id, choices = NULL, selected = NULL, placeholder = NULL, height = NULL, session = shiny::getDefaultReactiveDomain()) {
39+
update_check_search <- function(id, choices = NULL, selected = NULL, placeholder = NULL, height = NULL, session = get_current_session()) {
3740
if (!is.null(choices)) {
38-
choices <- process_ui(
41+
choices <- processDeps(
3942
check_search_choices(id, choices, selected),
4043
session
4144
)
@@ -101,6 +104,6 @@ check_search_dependency <- function() {
101104
version = get_package_version("bslib"),
102105
package = "bslib",
103106
src = "components",
104-
script = "check-search.js"
107+
script = "input_check_search.js"
105108
)
106109
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)