Added disabled prop in save button
File: EventTypeSingleLayout.tsx If no input field is changed then 'save' button will be disabled.
This commit is contained in:
parent
5690718e7f
commit
37652190d4
|
@ -412,6 +412,7 @@ function EventTypeSingleLayout({
|
|||
className="ml-4 lg:ml-0"
|
||||
type="submit"
|
||||
loading={isUpdateMutationLoading}
|
||||
disabled={!formMethods.formState.isDirty}
|
||||
data-testid="update-eventtype"
|
||||
form="event-type-form">
|
||||
{t("save")}
|
||||
|
|
Loading…
Reference in New Issue
Block a user