Skip to content

Commit f6c739d

Browse files
NLB-7074: Revert js fix
1 parent 97589a9 commit f6c739d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

static/nginxaas-azure/js/cost-calculator_v2.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,7 @@
367367
if (curEl.tagName.toLowerCase() === "input" || curEl.tagName.toLowerCase() === "select") {
368368
curEl.value = values[elName];
369369
} else {
370-
const inputEl = curEl.querySelector("input");
371-
if (inputEl) {
372-
inputEl.value = values[elName];
373-
}
370+
$(curEl).children("input").first().value = values[elName];
374371
}
375372
});
376373
};
@@ -386,10 +383,7 @@
386383
if (curEl.tagName.toLowerCase() === "input" || curEl.tagName.toLowerCase() === "select") {
387384
curEl.value = values[elName];
388385
} else {
389-
const inputEl = curEl.querySelector("input");
390-
if (inputEl) {
391-
inputEl.value = values[elName];
392-
}
386+
$(curEl).children("input").first().value = values[elName];
393387
}
394388
});
395389

0 commit comments

Comments
 (0)