Skip to content

Commit e144900

Browse files
committed
feat: hide widgets using module arg
1 parent 8e338ac commit e144900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/tm_p_scatterplot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ui_p_scatterplot <- function(id) {
3838
slim = TRUE,
3939
inline = TRUE
4040
),
41-
colour_picker_ui(ns("colors")),
41+
tags$span(id = ns("colors_span"), colour_picker_ui(ns("colors"))),
4242
bslib::card(
4343
full_screen = TRUE,
4444
tags$div(
@@ -70,7 +70,7 @@ srv_p_scatterplot <- function(id,
7070

7171
if (!show_widgets) {
7272
shinyjs::hide("add_lines")
73-
shinyjs::hide("colors")
73+
shinyjs::hide("colors_span")
7474
}
7575

7676
plotly_q <- reactive({

0 commit comments

Comments
 (0)