From c2b06f2c95554c04826b062d3ee0ac181cdd71c1 Mon Sep 17 00:00:00 2001 From: Michael Richmond Date: Fri, 16 Mar 2018 14:55:12 -0400 Subject: [PATCH] updated lookup component to handle changes from a non-null value to another non-null value --- aura/strike_lookup/strike_lookupController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aura/strike_lookup/strike_lookupController.js b/aura/strike_lookup/strike_lookupController.js index e1d9ca0..3035f8a 100644 --- a/aura/strike_lookup/strike_lookupController.js +++ b/aura/strike_lookup/strike_lookupController.js @@ -153,10 +153,11 @@ License: BSD 3-Clause License*/ }, handleValueChange: function(component, event, helper) { var value = component.get('v.value'); + var oldValue = event.getParam("oldValue"); if ($A.util.isEmpty(value)) { component.set('v.valueLabel', ''); - } else if ($A.util.isEmpty(component.get('v.valueLabel'))) { + } else if ($A.util.isEmpty(component.get('v.valueLabel')) || oldValue != value) { helper.getRecordByValue(component, event, helper); } },