Fix onErrorActionTypeChange: sel.nextElementSibling -> sel.parentElement.nextElementSibling
The Error Action HTML structure wraps the select in a flex div sibling to the .error-action-body div, so sel.nextElementSibling was null.
This commit is contained in:
+1
-1
@@ -2094,7 +2094,7 @@ function buildErrorActionRow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onErrorActionTypeChange(sel) {
|
function onErrorActionTypeChange(sel) {
|
||||||
const body = sel.nextElementSibling;
|
const body = sel.parentElement.nextElementSibling;
|
||||||
if (sel.value === 'proactive') {
|
if (sel.value === 'proactive') {
|
||||||
body.innerHTML = buildBerPcHtml(['display','tone']);
|
body.innerHTML = buildBerPcHtml(['display','tone']);
|
||||||
const pc = body.querySelector('.ber-pc');
|
const pc = body.querySelector('.ber-pc');
|
||||||
|
|||||||
Reference in New Issue
Block a user