fix: use shouldDirty flag (#5775)
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>pull/5753/head^2
parent
0d03006653
commit
8447b1bbd5
|
@ -235,7 +235,7 @@ const ProfileView = () => {
|
||||||
id="avatar-upload"
|
id="avatar-upload"
|
||||||
buttonMsg={t("change_avatar")}
|
buttonMsg={t("change_avatar")}
|
||||||
handleAvatarChange={(newAvatar) => {
|
handleAvatarChange={(newAvatar) => {
|
||||||
formMethods.setValue("avatar", newAvatar);
|
formMethods.setValue("avatar", newAvatar, { shouldDirty: true });
|
||||||
}}
|
}}
|
||||||
imageSrc={value}
|
imageSrc={value}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue