diff --git a/assets/js/ujs.js b/assets/js/ujs.js index 952314d3..b8cf1977 100644 --- a/assets/js/ujs.js +++ b/assets/js/ujs.js @@ -67,7 +67,7 @@ function formRemote(event, target) { } function formReset(event, target) { - $$('[disabled][data-disable-with]', target).forEach(input => { + $$('[disabled][data-disable-with][data-enable-with]', target).forEach(input => { const label = findFirstTextNode(input); if (label) { label.nodeValue = ` ${input.dataset.enableWith}`;