From 3d655e80eec6c770dce06f3d9cf04fffe607f644 Mon Sep 17 00:00:00 2001
From: yangjieke <yangjieke@prec-tech.com>
Date: 星期二, 22 三月 2022 17:53:32 +0800
Subject: [PATCH] SWAG-CCL6R7

---
 force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js
index 08b932a..395b1f9 100644
--- a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js
+++ b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js
@@ -125,6 +125,13 @@
                     }
 
                     if (item.behavior == "Required" && !item.value ) {
+                        let fs = component.find("field");
+                        for(let fi in fs){
+                            let f = fs[fi];
+                            if(!f.get('v.value')){
+                                f.reset();
+                            }
+                        }
                         return;
                     }
                 }

--
Gitblit v1.9.1