Skip to content

Commit

Permalink
fix: ASC-21507 - reset form when confirm remove hyperlink (#368)
Browse files Browse the repository at this point in the history
* fix: hyperlink action condition

* fix: hyperlink css

* fix: remove unused

* fix: hyperlink config condition

* fix: reset form when confirm remove hyperlink
  • Loading branch information
chaiwattsw authored Jun 7, 2024
1 parent 7a67b43 commit c80ef32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v4/social/components/HyperLinkConfig/HyperLinkConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const HyperLinkConfig = ({
register,
handleSubmit,
formState: { errors },
reset,
} = useForm<HyperLinkFormInputs>({
resolver: zodResolver(schema),
});
Expand All @@ -112,6 +113,7 @@ export const HyperLinkConfig = ({
};

const confirmDiscardHyperlink = () => {
reset();
onRemove();
onClose();
};
Expand Down

0 comments on commit c80ef32

Please sign in to comment.