'Backdrop for mobile with Javascript
Solution 1:[1]
Im not sure about vanilla js but u can achieve this in ReactJS using react-router-dom package. you can add Link to each section which will replace that modal in the section without page reloading/refreshing.
Edit:
I have 2 ideas to to this with vanilla js but its a bit complicated and confusing.
using appenChild() change section child with
onclick.adding
display: noneto all and changingdisplay: blockfor the once to display
this will not change reload or take to new page but u will need to add js for onclick for each route/model
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |

