Remove fragment from sidebar controls (not supported)
Sidebar controls cannot be in a fragment. Brief blank on slider change is a Streamlit limitation.
This commit is contained in:
@@ -93,9 +93,8 @@ def sync_engine_from_session_state() -> None:
|
||||
engine.set_load_current(st.session_state.get("load_current", 100.0) / 1000.0)
|
||||
|
||||
|
||||
@st.fragment
|
||||
def display_controls() -> None:
|
||||
"""Display simulation control panel in sidebar (as fragment to avoid full reruns)."""
|
||||
"""Display simulation control panel in sidebar."""
|
||||
st.sidebar.header("Simulation Controls")
|
||||
|
||||
# Start/Stop button
|
||||
|
||||
Reference in New Issue
Block a user