diff --git a/src/js/form-builder.js b/src/js/form-builder.js index c2332f535..06fd09177 100644 --- a/src/js/form-builder.js +++ b/src/js/form-builder.js @@ -1689,8 +1689,7 @@ function FormBuilder(opts, element, $) { e.stopPropagation() e.preventDefault() if (e.handled !== true) { - const targetID = - e.target.tagName == 'li' ? $(e.target).attr('id') : $(e.target).closest('li.form-field').attr('id') + const targetID = $(e.target).closest('li.form-field').attr('id') h.toggleEdit(targetID) e.handled = true }