Commit ee77e1a7 by lzd Committed by Torkel Ödegaard

Datasource: fix a bug where deleting data source will trigger save and test events (#21300)

parent 630f75d3
......@@ -30,7 +30,7 @@ const ButtonRow: FC<Props> = ({ isReadOnly, onDelete, onSubmit, onTest }) => {
</button>
)}
<button
type="submit"
type="button"
className="btn btn-danger"
disabled={isReadOnly}
onClick={onDelete}
......
......@@ -16,7 +16,7 @@ exports[`Render should render component 1`] = `
className="btn btn-danger"
disabled={true}
onClick={[MockFunction]}
type="submit"
type="button"
>
Delete
</button>
......@@ -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
</button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment