Skip to content

Commit

Permalink
Revert "WIP Remove some Form stuff to cause a change"
Browse files Browse the repository at this point in the history
This reverts commit a77ab80.
  • Loading branch information
mofojed committed Jul 17, 2024
1 parent a77ab80 commit 3f5afef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/ui/src/js/src/elements/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export function Form(
props: DHCFormProps & {
onSubmit?: (data: { [key: string]: FormDataEntryValue }) => void;
onReset?: (data: { [key: string]: FormDataEntryValue }) => void;
onInvalid?: (data: { [key: string]: FormDataEntryValue }) => void;
}
): JSX.Element {
const {
Expand All @@ -19,11 +20,13 @@ export function Form(

const onSubmit = useFormEventCallback(propOnSubmit);
const onReset = useFormEventCallback(propOnReset);
const onInvalid = useFormEventCallback(propOnInvalid);

return (
<DHCForm
onSubmit={onSubmit}
onReset={onReset}
onInvalid={onInvalid}
// eslint-disable-next-line react/jsx-props-no-spreading
{...otherProps}
/>
Expand Down

0 comments on commit 3f5afef

Please sign in to comment.