Skip to content

How to fix "virtualSelectInput" dropdown behaviour to works in downward direction #428

Description

@andirey

There is great selector "virtualSelectInput" in shinyWidgets package. The dropdown works correct in downward direction when I run code on Posit Workbench. However when the same code deployed on Posit Connect it start works in upward direction.

The ChatGPT explains it as Posit Connect imposes scrollable containers, viewports, or iframe boundaries that prevent JS from detecting true space.

The "virtual-select.js" library used under the hood by {shinyWidgets}, tries to auto-detect available space and "flips" the dropdown upward if it thinks there's not enough room below the input.

It suggest overrides position = "bottom" setting.

Any attempts to fix issues failed on my side.

I will be appreciated if someone help me fix it

Thanks!

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions