From d76f1d6fdb13695fa2bfb66fef37f73953387fb9 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 15 Sep 2020 13:47:30 -0400 Subject: [PATCH] ensure inputs to be reenabled have an enable-with attribute --- assets/js/ujs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`;