When creating a new study, the pop-up prompt to discard changes should not appear if all fields are empty. This does not work properly if something is entered into the fields and then deleted. When something is entered into the fields and then deleted the pop-up should not appear as there are only empty strings in the fields.
Steps to Reproduce
Create new study
Enter something in one of the fields
Delete everything in the fields
Close the dialog
Prompt to confirm if you want to discard changes even though all fields are empty
This gif shows the steps
Dependencies
This will depend on #129, if #129 was fixed then the user will not be able to press the "Next" button without a valid study name entered. So after #129 is fixed only the first dialog will need to check for valid fields and not the invitation emails dialog.
@softeng-701 I think this is a small issue as there are validations need to be made in the study dialog.
When creating a new study, the pop-up prompt to discard changes should not appear if all fields are empty. This does not work properly if something is entered into the fields and then deleted. When something is entered into the fields and then deleted the pop-up should not appear as there are only empty strings in the fields.
Steps to Reproduce
This gif shows the steps
Dependencies This will depend on #129, if #129 was fixed then the user will not be able to press the "Next" button without a valid study name entered. So after #129 is fixed only the first dialog will need to check for valid fields and not the invitation emails dialog.
@softeng-701 I think this is a small issue as there are validations need to be made in the study dialog.