We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5be70ce commit c93d08bCopy full SHA for c93d08b
1 file changed
testgen/ui/services/form_service.py
@@ -261,7 +261,11 @@ def render_grid_select(
261
selected_column, paginator_column = st.columns([.5, .5])
262
with paginator_column:
263
def on_page_change():
264
- st.session_state[f"{key}_page_change"] = True
+ # Ignore the on_change event fired during paginator initialization
265
+ if st.session_state.get(f"{key}_paginator_loaded", False):
266
+ st.session_state[f"{key}_page_change"] = True
267
+ else:
268
+ st.session_state[f"{key}_paginator_loaded"] = True
269
270
page_index = testgen.paginator(
271
count=len(df),
0 commit comments