-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Describe the bug
When the "New Project" modal is closed without submitting, the form fields (Project Name, Project Description, and file upload) retain
their values. Reopening the modal shows the previously entered data instead of a blank form.
Steps to Reproduce
- Click "New Project" to open the modal
- Enter a project name, description, and select a file
- Click "Close" without submitting
- Click "New Project" again
- Observe: previous values are still present in all fields
Expected behavior
The modal should reset all fields to empty/null when closed.
Root Cause
handleCloseModal in Homescreen.jsx only calls setShowModal(false) but does not reset the three form state values.
Suggested Fix
const handleCloseModal = () => {
setShowModal(false);
setProjectName("");
setProjectDescription("");
setFileUpload(null);
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels