Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Commit 2acfc63

Browse files
committed
close after submit
1 parent d20570d commit 2acfc63

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

reflex_ui/blocks/demo_form.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ def demo_form(**props) -> rx.Component:
246246
"@container flex flex-col lg:gap-6 gap-2 p-6",
247247
props.pop("class_name", ""),
248248
),
249+
# Close the dialog when the form is submitted
250+
on_submit=demo_form_open_cs.set_value(False),
249251
data_default_form_id="965991",
250252
**props,
251253
)

0 commit comments

Comments
 (0)