Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Text fields inside Toggle component on Details page are not emptied correctly #1463

Open
norisalsaadie opened this issue Sep 29, 2020 · 0 comments
Labels

Comments

@norisalsaadie
Copy link
Contributor

norisalsaadie commented Sep 29, 2020

Environment: local, staging and production on all browsers

Steps:

  1. Go to the dashboard page
  2. Start a new submission
  3. Get to the details page
  4. Check "This manuscript has been discussed with an eLife editor" and enter some text
  5. Wait for autosave then refresh
  6. Uncheck "This manuscript has been discussed with an eLife editor"
  7. Check "This manuscript has been discussed with an eLife editor" and notice the text has not disappeared

Expected outcome:

The text field should be empty

Updated:

The values seem to persist in the watches e.g. previouslyDiscussedWatch and not in the form itself e.g. calling getValues()

@norisalsaadie norisalsaadie added the Bug Priority II label Sep 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants