fix: update HTML query selector

This commit is contained in:
Parkreiner
2024-06-25 19:57:48 +00:00
parent 652fc6b84f
commit 702271133f

View File

@@ -195,7 +195,7 @@ async function autoSubmitForm(myForm) {
// they're part of the form. Avoids CSS stacking context issues, maybe? // they're part of the form. Avoids CSS stacking context issues, maybe?
/** @type {HTMLLIElement | null} */ /** @type {HTMLLIElement | null} */
const protocolOption = document.querySelector( const protocolOption = document.querySelector(
'p-dropdownitem[ng-reflect-label="' + PROTOCOL + '" li', 'p-dropdownitem[ng-reflect-label="' + PROTOCOL + '"] li',
); );
if (protocolOption === null) { if (protocolOption === null) {
@@ -451,7 +451,7 @@ function setupFormOverrides() {
setupAlwaysOnStyles(); setupAlwaysOnStyles();
if (document.readyState === "loading") { if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", setupFormDetection); document.addEventListener("DOMContentLoaded", setupFormOverrides);
} else { } else {
setupFormDetection(); setupFormOverrides();
} }