mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18:48 -03:30
Merge pull request #11104 from AlexSCorey/8826-ErroneousFormValidation
Prevents form validation on cancel button click
This commit is contained in:
@@ -23,6 +23,7 @@ const FormActionGroup = ({ onCancel, onSubmit, submitDisabled }) => (
|
|||||||
aria-label={t`Cancel`}
|
aria-label={t`Cancel`}
|
||||||
variant="link"
|
variant="link"
|
||||||
type="button"
|
type="button"
|
||||||
|
onMouseDown={(e) => e.preventDefault()}
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
>
|
>
|
||||||
{t`Cancel`}
|
{t`Cancel`}
|
||||||
|
|||||||
Reference in New Issue
Block a user