reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Submit button doesn't wait for required fields

Open gergelyk opened this issue 4 months ago • 2 comments

Describe the bug One may expect Submit button to not close the form as long as all the required fields are filled. Currently it silently closes the dialog in the example. Feel free to close this ticket if this is expected behavior.

To Reproduce

  • Click on the last button "Add User": https://reflex.dev/docs/getting-started/dashboard-tutorial/

  • Click Submit without filling in any date

  • Code/Link to Repo:

Expected behavior A clear and concise description of what you expected to happen.

  • Python Version: 3.13.3
  • Reflex Version: 0.9.7
  • OS: Ubuntu
  • Browser (Optional): Chromium

gergelyk avatar Jul 28 '26 13:07 gergelyk

ENG-10653

linear-code[bot] avatar Jul 28 '26 13:07 linear-code[bot]

I reproduced this in the live dashboard tutorial: clicking Submit with the required name empty closes the dialog. I plan to make the tutorial dialog controlled, remove dialog.close from Submit, and close it from add_user only after the form validates and submits. I’ll cover each executable version of the example.

rohit-jsfreaky avatar Aug 12 '26 07:08 rohit-jsfreaky