Fix vital signs age selector: add setTimeout for DOM readiness
This commit is contained in:
parent
a5f073dcdd
commit
09aaeefee1
1 changed files with 3 additions and 0 deletions
|
|
@ -1595,6 +1595,8 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Delay slightly to ensure DOM is ready for hidden panels
|
||||||
|
setTimeout(function() {
|
||||||
var vitalsSelect = document.getElementById('vitals-age-select');
|
var vitalsSelect = document.getElementById('vitals-age-select');
|
||||||
if (vitalsSelect) {
|
if (vitalsSelect) {
|
||||||
vitalsSelect.addEventListener('change', function() {
|
vitalsSelect.addEventListener('change', function() {
|
||||||
|
|
@ -1626,5 +1628,6 @@
|
||||||
'</div>';
|
'</div>';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}, 100); // end setTimeout for vitals
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue