mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 11:42:10 +00:00
feat: rename modal container id
This commit is contained in:
parent
8743db64a6
commit
74075a014d
1 changed files with 3 additions and 2 deletions
|
@ -42,7 +42,8 @@ export function Modal({
|
||||||
const isTopMostModal = () => {
|
const isTopMostModal = () => {
|
||||||
const openModals = document.getElementsByClassName("modal-container");
|
const openModals = document.getElementsByClassName("modal-container");
|
||||||
return (
|
return (
|
||||||
openModals.length && openModals[openModals.length - 1].id === componentId
|
openModals.length &&
|
||||||
|
openModals[openModals.length - 1].id === "modal-container-" + componentId
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -85,7 +86,7 @@ export function Modal({
|
||||||
return createPortal(
|
return createPortal(
|
||||||
<div
|
<div
|
||||||
className={styles.backdrop({ closing: isClosing }) + " modal-container"}
|
className={styles.backdrop({ closing: isClosing }) + " modal-container"}
|
||||||
id={componentId}
|
id={"modal-container-" + componentId}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={styles.modal({ closing: isClosing })}
|
className={styles.modal({ closing: isClosing })}
|
||||||
|
|
Loading…
Reference in a new issue