add insertBefore=null so the content of the existing modal isn't replaced (see in-element docs),
make backdrop and modal z-index the same, so new modals can be shown over existing modals
the previous behaviour broke opening a modal when another modal was already open because focus-trap tried to access the previous modal's contents which broke the app.
the previous behaviour broke opening a modal when another modal was already open because focus-trap tried to access the previous modal's contents which broke the app.