From ee77e1a791ae4b91acfc19ccca65f6bddf52f43c Mon Sep 17 00:00:00 2001 From: lzd <24379844+lzdw@users.noreply.github.com> Date: Tue, 7 Jan 2020 16:48:46 +0800 Subject: [PATCH] Datasource: fix a bug where deleting data source will trigger save and test events (#21300) --- public/app/features/datasources/settings/ButtonRow.tsx | 2 +- .../settings/__snapshots__/ButtonRow.test.tsx.snap | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/features/datasources/settings/ButtonRow.tsx b/public/app/features/datasources/settings/ButtonRow.tsx index 90f6ca4bb9d..7ed5ce48e6a 100644 --- a/public/app/features/datasources/settings/ButtonRow.tsx +++ b/public/app/features/datasources/settings/ButtonRow.tsx @@ -30,7 +30,7 @@ const ButtonRow: FC = ({ isReadOnly, onDelete, onSubmit, onTest }) => { )} @@ -47,7 +47,7 @@ exports[`Render should render with buttons enabled 1`] = ` className="btn btn-danger" disabled={false} onClick={[MockFunction]} - type="submit" + type="button" > Delete