From 735284416a55692a93c7a9875332faac25372c51 Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Tue, 12 Nov 2024 11:02:49 +0900 Subject: [PATCH] fix: ignore first init value --- src/TransformGridItem/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/TransformGridItem/index.tsx b/src/TransformGridItem/index.tsx index c0d3605..0e1db13 100644 --- a/src/TransformGridItem/index.tsx +++ b/src/TransformGridItem/index.tsx @@ -52,8 +52,10 @@ export const TransformGridItem: FC = ({ transform }) => { return } - setClosed(alreadyClosed) - setPreviewDisabled(false) + if (previewDisabled) { + setClosed(alreadyClosed) + setPreviewDisabled(false) + } }, [value]) const onCheckboxOptionChanged =