atomsystem 0.1.33 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,13 @@ export const ModalContent = ({
21
21
  size = "normal",
22
22
  }: ModalProps) => {
23
23
  useEffect(() => {
24
- ReactModal.setAppElement("#modal-root"); // 접근성 설정
24
+ let rootElement = document.getElementById("modal-root");
25
+ if (!rootElement) {
26
+ rootElement = document.createElement("div");
27
+ rootElement.id = "modal-root";
28
+ document.body.appendChild(rootElement);
29
+ }
30
+ ReactModal.setAppElement(rootElement); // 접근성 설정
25
31
  }, []);
26
32
 
27
33
  return (
package/cli/init.js CHANGED
@@ -109,6 +109,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
109
109
  <body>
110
110
  <ThemeProvider />
111
111
  {children}
112
+ <div id="modal-root"></div>
112
113
  </body>
113
114
  </html>
114
115
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atomsystem",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "type": "module",
5
5
  "homepage": "https://system.atomground.com",
6
6
  "bin": {