I have been using ngx-bootstrap tabset, although I believe this issue could apply to all bootstrap tabs as well.
<tabset>
<tab class='active'>
<angular-modal-component> </angular-modal-component>
</tab>
<tab>
<modal2> </modal2>
</tab>
</tabset>
The <angular-modal-component>
modal functions properly with a display: block;
when the tab is active. However, the problem arises with the <modal2>
modal. The backdrop appears but the modal itself remains hidden due to a display: none
property on the inactive tab. Is there a solution to this problem without relocating the <modal2>
outside of the tab?
In essence, my question is whether it is possible to display a modal in content that has a display:none
attribute? Changing this setting reveals the tab content along with the modal, which is not ideal.