admin: fix rendering of FileInput

This commit is contained in:
Jens Langhammer
2020-11-29 19:40:28 +01:00
parent 0a2c0464df
commit 5c5adfcccc
6 changed files with 18 additions and 17 deletions

View File

@ -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();