fix: update HTML query selector
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user