Похожие чаты

At this point is possible render the modal only when

the div exists?

6 ответов

14 просмотров

Update your index.html file adding a div in the body tag as: <div id="main"></div> and then rename the div inside your Layout component to have some other id (so that there's only one "main" id div which is already in index.html file). The Modal should be rendered with Portal now.

Michael Fantoni- Автор вопроса
Kusal KC
Update your index.html file adding a div in the bo...

ok got it, seems working now but the modal not appear

Michael Fantoni- Автор вопроса
Kusal KC
Update your index.html file adding a div in the bo...

I have </Modal.Body> </Modal>, document.querySelector(".main")

Michael Fantoni
I have </Modal.Body> </Modal>, docum...

I wanna help further, but we keep rotating on the same issue here, don't know exactly what you're doing here because you're only giving me one/two statement out of the context from your file. IF you need further help, put it somewhere online, like StackBlitz/GitHub, anywhere and share files or screenshots.

Michael Fantoni- Автор вопроса
Kusal KC
I wanna help further, but we keep rotating on the ...

the problem is that the modal doesn't show inside the main container

Michael Fantoni
the problem is that the modal doesn't show inside ...

If you inspect the page and look into DOM tree, I am sure you'll find that the Modal DOM tree is inside the main container DOM element. It doesn't show inside the main container in the page? Use CSS to style your Modal, man.. Your modal probably has an overlay and a container with position fixed stretching all over the page.

Похожие вопросы

Обсуждают сегодня

а через ESC-код ?
Alexey Kulakov
29
30500 за редактор? )
Владимир
47
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
15
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
any reference of this implementation?
BitBuddha
29
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
13
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
&"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64\dumpbin.exe" /EXPORTS C:\Users\Yeet\Tauon\vcpkg\installed\x64-window...
Martin Rys
6
Карта сайта