mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
feat: rename modal container id
This commit is contained in:
parent
8743db64a6
commit
74075a014d
@ -42,7 +42,8 @@ export function Modal({
|
||||
const isTopMostModal = () => {
|
||||
const openModals = document.getElementsByClassName("modal-container");
|
||||
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(
|
||||
<div
|
||||
className={styles.backdrop({ closing: isClosing }) + " modal-container"}
|
||||
id={componentId}
|
||||
id={"modal-container-" + componentId}
|
||||
>
|
||||
<div
|
||||
className={styles.modal({ closing: isClosing })}
|
||||
|
Loading…
Reference in New Issue
Block a user