From 258611058054d14c46915b52d8d0ebfaf4da4900 Mon Sep 17 00:00:00 2001 From: Wells Date: Tue, 16 Apr 2024 14:43:26 +0800 Subject: [PATCH 1/2] docs: add StrictMode --- apps/playground/src/layouts/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/playground/src/layouts/index.tsx b/apps/playground/src/layouts/index.tsx index dd410057..d46234c2 100644 --- a/apps/playground/src/layouts/index.tsx +++ b/apps/playground/src/layouts/index.tsx @@ -1,11 +1,11 @@ -import React from 'react'; +import React, { StrictMode } from 'react'; import { Outlet } from 'umi'; import './index.less'; export default function Layout() { return ( -
+ -
+ ); } From 0656b03c8443386123ee1e6c0d05ec24e00926c7 Mon Sep 17 00:00:00 2001 From: Wells Date: Tue, 16 Apr 2024 15:24:07 +0800 Subject: [PATCH 2/2] fix: variable tree remove button event handling --- packages/designer/src/components/variable-tree/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/designer/src/components/variable-tree/index.tsx b/packages/designer/src/components/variable-tree/index.tsx index 7241788f..fbbe9b75 100644 --- a/packages/designer/src/components/variable-tree/index.tsx +++ b/packages/designer/src/components/variable-tree/index.tsx @@ -204,7 +204,8 @@ export function VariableTree(props: VariableTreeProps) { {node.showRemoveButton && ( { + onConfirm={(e) => { + e.stopPropagation(); if (isStoreVariablePath(node.key)) { onRemoveStoreVariable(node.key); } else {