SaveDashboard: Fixes issue with saving dashboard form and enter key (#33602)

This commit is contained in:
Torkel Ödegaard
2021-05-03 07:41:10 +02:00
committed by GitHub
parent 6ab08d948a
commit b3a46459d9

View File

@@ -118,7 +118,7 @@ export const SaveDashboardAsForm: React.FC<SaveDashboardFormProps & { isNew?: bo
<Switch {...register('copyTags')} />
</Field>
<Modal.ButtonRow>
<Button variant="secondary" onClick={onCancel} fill="outline">
<Button type="button" variant="secondary" onClick={onCancel} fill="outline">
Cancel
</Button>
<Button type="submit" aria-label="Save dashboard button">