-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
When adding the Sortable package to my shiny app, I get four 'Shiny.setInputValue is not a function' errors whenever I start up my app. The app works as intended, but I'm annoyed by the console clutter and haven't been able to figure out why this error is occurring. Here is a screenshot of the errors:
I can include some relevant snippets of my code to see if it's an error that's my fault (which is very possible considering I don't see any other issues with this same error).
ui.R
library(shiny)
library(shinycssloaders)
library(shinyjs)
library(bslib)
library(sortable)
...
tabPanel("Sankey",
fluidRow(
column(
2,
div(
class = "sidebar-card shadow-sm rounded p-3 bg-white",
# Plot options
tags$label("Select & Order Columns for Sankey Plot"),
bucket_list(
header = NULL,
group_name = "sankey_columns",
orientation = "vertical",
add_rank_list(
text = "Available Columns",
input_id = "sankey_available",
labels = c("outc_cod", "irAECategory", "sex", "combination", "drug_class", "outc_cod"), # not selected by default
options = sortable_options(multiselect = FALSE, environment = "document")
),
add_rank_list(
text = "Selected Columns (Drag to reorder)",
input_id = "sankey_selected",
labels = character(0), # default selection/order
options = sortable_options(multiselect = FALSE, environment = "document")
)
),
...
Metadata
Metadata
Assignees
Labels
No labels