fix: update HTML query selector

web-rdp-cloud-fixes
Parkreiner 1 year ago
parent 652fc6b84f
commit 702271133f

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

Loading…
Cancel
Save