mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
feat(FE-170): change Cancel button to Reset in RecordingForm for improved form handling
This commit is contained in:
@@ -2534,12 +2534,15 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
|||||||
{type === 'edit' && (
|
{type === 'edit' && (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
type='button'
|
type='reset'
|
||||||
color='error'
|
color='warning'
|
||||||
onClick={() => router.push('/production/recording')}
|
|
||||||
className='px-4'
|
className='px-4'
|
||||||
|
onClick={(e) => {
|
||||||
|
formik.handleReset(e);
|
||||||
|
formik.validateForm();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
Cancel
|
Reset
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
type='submit'
|
type='submit'
|
||||||
|
|||||||
Reference in New Issue
Block a user