There was an error while loading. Please reload this page.
1 parent 74b3fe8 commit 5ebf5d9Copy full SHA for 5ebf5d9
packages/kit-headless/src/components/modal/modal.tsx
@@ -66,8 +66,6 @@ export const Modal = component$((props: ModalProps) => {
66
// fixes modal scrollbar flickering
67
modal.style.left = `${scrollbarWidth}px`;
68
69
- closing(modal, props.onClose$);
70
-
71
showSig.value = false;
72
}
73
};
@@ -82,10 +80,10 @@ export const Modal = component$((props: ModalProps) => {
82
80
lockScroll();
83
81
} else {
84
unlockScroll(scrollbarWidth);
85
86
87
88
cleanup(() => {
+ closing(modal, props.onClose$);
89
deactivateFocusTrap(focusTrap);
90
91
// prevents closing animation scrollbar flickers (chrome & edge)
0 commit comments