-
Clone the repo and run the following:
npm install npm run setup npm run dev -
Visit http://localhost:3000/repro or http://localhost:3000 and click the link.
-
Assuming
npm run setupworked and the local SQLite database was seeded, there should already be a Contributing Factor entry in the database with the nametest. Fill out the name field of the "Add a new entry" form with a value oftestand submit. You should see an error message that an entry with that name already exists, but the invalid input (thenamefield) does not get auto-focused. Also, the only reason you see the correct error message is because of hack I through in to pull the error out of the form errors object rather than thenamefield config errors array. -
To "fix" this, you can comment out the
loaderfunction in theapp/routes/_app.repro.tsxroute file. For some reason, this makes the form behave as expected. 🤯
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|