fix: убран dealModalClosed event из closeModel (больше не нужен)

This commit is contained in:
Mac 2026-06-16 12:55:56 +03:00
parent 873e7a254f
commit 97d9fc69f5

View File

@ -1356,8 +1356,10 @@ watch(() => props.isOpen, (newVal) => {
const emit = defineEmits(['close', 'added']);
const closeModel = () => {
// Notify legacy side that the Deal modal has been closed
window.dispatchEvent(new CustomEvent('dealModalClosed'))
if (window.isDealOpen !== undefined) window.isDealOpen = false;
document.body.classList.remove('lock');
const backdrop = document.querySelector('.modal-backdrop');
if (backdrop) backdrop.remove();
emit('close');
};