Skip to content

ui.input_slider() and ui.input_selectize() not displayed correctly on chrome #1863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SereDef opened this issue Feb 21, 2025 · 2 comments
Closed

Comments

@SereDef
Copy link

SereDef commented Feb 21, 2025

ui.input_slider() and ui.input_selectize() are not displayed correctly on chrome, when using shiny version 1.2.1

A repex:

from shiny import App, ui

app_ui = ui.page_fluid(
    ui.input_slider("obs", "Number of bins:", min=10, max=100, value=30),
    ui.input_selectize("selectize", "Select an option below:",
                       {"1A": "Choice 1A", "1B": "Choice 1B", "1C": "Choice 1C"},),
                     )

def server(input, output, session):
    pass

app = App(app_ui, server)

Gets you:

Image

I tried running it both with and without --reload and --launch-browser.
It seems work fine on firefox.

The rest of my env (if helpful):

Package           Version
----------------- -----------
anyio             4.8.0
appdirs           1.4.4
asgiref           3.8.1
click             8.1.8
exceptiongroup    1.2.2
h11               0.14.0
htmltools         0.6.0
idna              3.10
linkify-it-py     2.0.3
markdown-it-py    3.0.0
mdit-py-plugins   0.4.2
mdurl             0.1.2
narwhals          1.27.1
numpy             2.0.2
orjson            3.10.15
packaging         24.2
pandas            2.2.3
pip               25.0.1
prompt_toolkit    3.0.50
python-dateutil   2.9.0.post0
python-multipart  0.0.20
pytz              2025.1
questionary       2.1.0
setuptools        49.2.1
shiny             1.2.1
six               1.17.0
sniffio           1.3.1
starlette         0.45.3
typing_extensions 4.12.2
tzdata            2025.1
uc-micro-py       1.0.3
uvicorn           0.34.0
watchfiles        1.0.4
wcwidth           0.2.13
websockets        15.0
@gadenbuie
Copy link
Collaborator

Can you try a hard refresh in Chrome? That's Cmd + Shift + R on mac or Ctrl + F5 (I think) on Windows/Linux.

If that doesn't work, could you open the Chrome Developer Tools (right click on the page and select "Inspect") and see if there are any errors reported in the Console tab. You could also check in the Network tab, it's possible there are assets that aren't downloading for some reason.

@SereDef
Copy link
Author

SereDef commented Feb 21, 2025

Hard refresh did the trick. Thanks!

@SereDef SereDef closed this as completed Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants