Skip to content

Commit

Permalink
fix: clear input after submit (close alist-org/alist#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Nov 1, 2022
1 parent e14050d commit 70c4685
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ModalInput.tsx
Expand Up @@ -32,6 +32,7 @@ export const ModalInput = (props: ModalInputProps) => {
return;
}
props.onSubmit?.(value());
setValue("");
};
return (
<Modal
Expand Down

0 comments on commit 70c4685

Please sign in to comment.