FastListTemplate theme toggle does not seem to work

Hi everyone,

I am trying to use the FastListTemplate to host a demo web app, and I noticed that the theme toggle button in the upper right corner does not seem to work. More specifically, clicking it will only lead to a page refresh, but no theme change. Is this the expected behavior?

Here is a simple sample code:

import panel as pn
pn.extension()

pn.template.FastListTemplate(
    site="demo",
    title="demo",
    main=[pn.pane.Markdown("test")],
    theme="dark",
    theme_toggle=True,
).servable()
1 Like

Quick update:

The issue is not with theme_toggle, but another widget FileSelector I was using.
When specify the refresh rate in the FileSelector, the theme toggle no longer works.
Hopefully this information will help someone encountering similar issues.

1 Like

Can you post a bug on Github with the code to reproduce the error?

1 Like

Just noiticed similar problem in my app. I have a FileInput widget instead of FileSelector and I have not chosen any special options for it: FileInput(accept='.xlsx', multiple=True). I did not find anything from GitHub, would someone have knowledge about this behaviour?

1 Like

Hi @jvkloc

Please help us by 1) Creating a new post 2) Including a minimum, reproducible example. Without it we might simply be chasing the wrong problem. Thanks.