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