Fix vital signs age selector: add setTimeout for DOM readiness
This commit is contained in:
parent
df36c549b7
commit
f40b94f6c5
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');
|
||||
if (vitalsSelect) {
|
||||
vitalsSelect.addEventListener('change', function() {
|
||||
|
|
@ -1626,5 +1628,6 @@
|
|||
'</div>';
|
||||
});
|
||||
}
|
||||
}, 100); // end setTimeout for vitals
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue