ensure inputs to be reenabled have an enable-with attribute

This commit is contained in:
byte[] 2020-09-15 13:47:30 -04:00
parent 5734deee85
commit d76f1d6fdb

View file

@ -67,7 +67,7 @@ function formRemote(event, target) {
} }
function formReset(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); const label = findFirstTextNode(input);
if (label) { if (label) {
label.nodeValue = ` ${input.dataset.enableWith}`; label.nodeValue = ` ${input.dataset.enableWith}`;