From cd85ae8e5f0799d793844f8da217518b98bb15d0 Mon Sep 17 00:00:00 2001 From: Montana Date: Mon, 22 Apr 2019 09:21:33 -0400 Subject: [PATCH] use this._uid to check parent --- js/components/forms/multi_step_modal_form.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/components/forms/multi_step_modal_form.js b/js/components/forms/multi_step_modal_form.js index b9eeae87..323366ad 100644 --- a/js/components/forms/multi_step_modal_form.js +++ b/js/components/forms/multi_step_modal_form.js @@ -27,7 +27,6 @@ export default { step: 0, fields: {}, invalid: true, - parent_uid: '', } }, @@ -54,7 +53,7 @@ export default { handleValidChange: function(event) { const { name, valid, parent_uid } = event // check that this field is in the modal and not on some other form - if (parent_uid === this.parent_uid) { + if (parent_uid === this._uid) { this.fields[name] = valid this._checkIsValid() } @@ -67,7 +66,6 @@ export default { handleFieldMount: function(event) { const { name, optional, parent_uid } = event this.fields[name] = optional - this.parent_uid = parent_uid }, handleModalOpen: function(_bool) { this.step = 0