mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Prevent LiveComponents from interfering with modal behavior
This commit is contained in:
parent
cbb32838fb
commit
38add17280
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
document.addEventListener('show.bs.modal', function (event) {
|
document.addEventListener('show.bs.modal', function (event) {
|
||||||
|
if (event.target.closest('[data-controller~="live"]')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (event.target.parentElement !== document.body) {
|
if (event.target.parentElement !== document.body) {
|
||||||
document.body.appendChild(event.target);
|
document.body.appendChild(event.target);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue