We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01002f3 commit d071a66Copy full SHA for d071a66
src/components/SocialArchitecture/RequestResources.jsx
@@ -20,7 +20,18 @@ function RequestResources() {
20
21
const handleChange = e => {
22
const { name, value } = e.target;
23
+
24
+ // Update form data
25
setFormData({ ...formData, [name]: value });
26
27
+ // Clear error for this specific field when user types or selects a valid value
28
+ if (errors[name]) {
29
+ setErrors(prevErrors => {
30
+ const updatedErrors = { ...prevErrors };
31
+ delete updatedErrors[name];
32
+ return updatedErrors;
33
+ });
34
+ }
35
};
36
37
const handleFileChange = e => {
0 commit comments