admin: fix rendering of FileInput
This commit is contained in:
2
web/dist/main.js
vendored
2
web/dist/main.js
vendored
File diff suppressed because one or more lines are too long
2
web/dist/main.js.map
vendored
2
web/dist/main.js.map
vendored
File diff suppressed because one or more lines are too long
@ -52,6 +52,9 @@ export class ModalButton extends LitElement {
|
||||
updateHandlers() {
|
||||
// Ensure links close the modal
|
||||
this.querySelectorAll<HTMLAnchorElement>("[slot=modal] a").forEach((a) => {
|
||||
if (a.target == "_blank") {
|
||||
return;
|
||||
}
|
||||
// Make click on a close the modal
|
||||
a.addEventListener("click", (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user