From 7eac609bd90935886bf8133d433f714aca6d0992 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 24 Jul 2020 11:16:22 +0200 Subject: [PATCH] LSformElement JS : fire change event on input field cleared --- src/includes/js/LSformElement_field.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/includes/js/LSformElement_field.js b/src/includes/js/LSformElement_field.js index 2e420a38..ee7dbf74 100644 --- a/src/includes/js/LSformElement_field.js +++ b/src/includes/js/LSformElement_field.js @@ -36,6 +36,7 @@ var LSformElement_field = new Class({ clearValue: function() { if ($type(this.getFormField())) { this.getFormField().value=''; + this.getFormField().fireEvent('change'); } varLSform.clearFieldValue(this.field_name); },