Skip to content

Sortable package causes 'Shiny.setInputValue is not a function' errors #124

Description

@dstone42

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:

Image

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")
                  )
                ),

...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions