htrc / torchlite-app

torchlite-app.vercel.app
0 stars 0 forks source link

Clean the data: custom stopwords modal button bug #67

Closed jchristie01 closed 1 month ago

jchristie01 commented 2 months ago

There is a bug in the current configuration of the upload custom list modal with the "Upload from your computer" button. A user can currently enter a name for their custom list and then select a list from their local machine OR from a publicly available URL. Everything works correctly on the initial entry of fields. When a user fills out the name field and enters a local path OR a correctly formatted URL, the 'Save' button enables correctly:

Option 1: name + Upload from your computer option: Screen Shot 2024-07-24 at 11 56 23 AM

Option 2: name + enter URL: Screen Shot 2024-07-24 at 11 57 10 AM

HOWEVER, if the user clicks the clear button and then retries to upload a local file and provide a name in the name field, the Submit button does not enable as it should. This is the modal after both a name has been provided and the Upload from your computer button has been used to select a local file after previously clearing the form: Screen Shot 2024-07-24 at 12 00 51 PM

Nothing has been added to the file name location and the Save button is not enabled.