From ccd932d5c0ba895d06acd0293a3ed80818edacf5 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 27 Apr 2018 16:23:54 +0200 Subject: [PATCH] LSformElement.js : do not handle sub li elements on removing one field --- public_html/includes/js/LSformElement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/js/LSformElement.js b/public_html/includes/js/LSformElement.js index 59f52743..2bd74bbe 100644 --- a/public_html/includes/js/LSformElement.js +++ b/public_html/includes/js/LSformElement.js @@ -50,7 +50,7 @@ var LSformElement = new Class({ }, onRemoveFieldBtnClick: function(field) { - if (this.ul.getElements('li').length == 1) { + if (this.ul.getChildren('li').length == 1) { field.clearValue.bind(field)(); } else {