fix: убран dealModalClosed event из closeModel (больше не нужен)
This commit is contained in:
parent
873e7a254f
commit
97d9fc69f5
@ -1356,8 +1356,10 @@ watch(() => props.isOpen, (newVal) => {
|
|||||||
|
|
||||||
const emit = defineEmits(['close', 'added']);
|
const emit = defineEmits(['close', 'added']);
|
||||||
const closeModel = () => {
|
const closeModel = () => {
|
||||||
// Notify legacy side that the Deal modal has been closed
|
if (window.isDealOpen !== undefined) window.isDealOpen = false;
|
||||||
window.dispatchEvent(new CustomEvent('dealModalClosed'))
|
document.body.classList.remove('lock');
|
||||||
|
const backdrop = document.querySelector('.modal-backdrop');
|
||||||
|
if (backdrop) backdrop.remove();
|
||||||
emit('close');
|
emit('close');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user