Skip to content

[Bug]: Resize popover is not properly rendering with new version of shiny #350

Description

@averissimo

What happened?

shinytests2 tests are failing on plot_with_settings when the resize popup does not render any contents

Image

When inspecting the DOM, the recalculating class appears on the elements, hence the contents of the resize popup is empty

Image
pkgload::load_all("/home/averissimo/work/roche🟦/packages📦/teal.widgets")
shiny::shinyApp(
  ui = bslib::page_fluid(
    shiny::actionButton("button", "Show/Hide"),
    plot_with_settings_ui(
      id = "plot_with_settings"
    )
  ),
  server = function(input, output, session) {
    plot_r <- shiny::reactive({
      ggplot2::ggplot(data.frame(x = 1:5, y = 1:5)) +
        ggplot2::geom_point(ggplot2::aes(x = 1:5, y = 1:5))
    })

    show_hide_signal <- shiny::reactiveVal(TRUE)

    shiny::observeEvent(input$button, {
      show_hide_signal(
        !show_hide_signal()
      )
    })

    plot_data <- plot_with_settings_srv(
      id = "plot_with_settings",
      plot_r = plot_r,
      height = c(400, 100, 1200),
      width = c(500, 250, 750),
      brushing = TRUE,
      clicking = TRUE,
      dblclicking = TRUE,
      hovering = TRUE,
      show_hide_signal = show_hide_signal
    )

    shiny::exportTestValues(
      plot_r = plot_r,
      plot_data = plot_data
    )
  }
)

sessionInfo()

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions