From 97adffec0af913c0731ad09b2c329722914a3f0d Mon Sep 17 00:00:00 2001 From: nikitakuzn Date: Thu, 18 Dec 2025 11:54:29 +0300 Subject: [PATCH] fix(modal): stabilize modal vnode keys --- components/modal/useModal/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/modal/useModal/index.tsx b/components/modal/useModal/index.tsx index e0badecf62..4eb06f50ff 100644 --- a/components/modal/useModal/index.tsx +++ b/components/modal/useModal/index.tsx @@ -65,7 +65,7 @@ function useModal(): readonly [ // =========================== Hook =========================== const getConfirmFunc = (withFunc: (config: ModalFuncProps) => ModalFuncProps) => function hookConfirm(config: Ref | ModalFuncProps) { - uuid += 1; + const modalId = uuid++; const open = shallowRef(true); const modalRef = shallowRef(null); const configRef = shallowRef(unref(config)); @@ -91,7 +91,7 @@ function useModal(): readonly [ let closeFunc: Function | undefined; const modal = () => (