Modal popup should add it's markup into body by default
gfarishyan opened this issue · comments
Grigor Farishyan commented
Can you put modal wrapper & modal into html body instead of container where embed called ?
Tom Hamilton Stubber commented
Sorry for the late reply.
I'm unsure what you mean here? The modal is loaded into the body at the moment. Where else would it be rendered?
<div id="socket-enquiry-modal"></div>
<script>
socket('9c79f14df986a1ec693c', {
mode: 'enquiry',
element: '#socket-enquiry'
});
</script>
Will render:
<div id="socket-enquiry-modal">
<div class="tcs-app">
<div class="tcs-enquiry-modal">
...
</div>
</div>
</div>