LSformElement.js : do not handle sub li elements on removing one field

This commit is contained in:
Benjamin Renard 2018-04-27 16:23:54 +02:00
parent 4715aba0f1
commit ccd932d5c0

View file

@ -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 {