From 763ebcc4d37aa9ac08fc9b24c637e5e475af672d Mon Sep 17 00:00:00 2001 From: Benkhaled Date: Thu, 25 Nov 2021 17:20:30 +0100 Subject: [PATCH] Update form.js FIXED issue #139 --- location_field/static/location_field/js/form.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/location_field/static/location_field/js/form.js b/location_field/static/location_field/js/form.js index b9e0582..f8c6910 100644 --- a/location_field/static/location_field/js/form.js +++ b/location_field/static/location_field/js/form.js @@ -433,7 +433,11 @@ var SequentialLoader = function() { onchangeTimer, onchange = function() { var values = basedFields.map(function() { - var value = $(this).val(); + var value = ''; + if ($(this).is('select')) + value = $(this).find(":selected").text(); + else + value = $(this).val(); return value === '' ? null : value; }); var address = values.toArray().join(', ');