From f11b49fe20da2329ba67a17224383821cacdd588 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Wed, 31 Jan 2018 17:32:51 +0000
Subject: [PATCH] Fix bug where required attribute wasnt removed

---
 opentech/apply/funds/static/address_form.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opentech/apply/funds/static/address_form.js b/opentech/apply/funds/static/address_form.js
index ab67198de..5bfdccb82 100644
--- a/opentech/apply/funds/static/address_form.js
+++ b/opentech/apply/funds/static/address_form.js
@@ -32,7 +32,7 @@
 
     function makeFieldNotRequired(field){
         var $field = $(field);
-        $(this).prop('required', false);
+        $field.removeAttr('required');
         var $label = labelFor($field);
         $label.children('span').remove();
     }
-- 
GitLab