-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Describe the bug
When submitting a form the exception "ReferenceError: refs is not defined" is raised.
To Reproduce
Steps to reproduce the behavior:
Bring up the app in the included python file below with:
reflex run --env prod
Click the Login link and enter any email and password:
Press the "Log in" button
Exception will appear.
Running the same test but launching with:
reflex run
Does not produce the exception
For consistent results, I ran
reflex init
before each test but not positive this was necessary.
The core element to the test case is having two forms on different pages/routes but each with a field that has the same id string. In this test case it is id="UserEmailAddress".
- Code/Link to Repo:
reflex_issue_refs_is_not_defined.zip
Expected behavior
No exception should occur.
Screenshots
If applicable, add screenshots to help explain your problem.
Specifics (please complete the following information):
- Python Version: 3.13.3
- Reflex Version: 0.7.14
- OS: Ubuntu 24.04.1
- Browser (Optional): Brave