🐛 Prevent default on form
This commit is contained in:
parent
462b11cd88
commit
e8d2ab0fac
@ -59,6 +59,7 @@ export default class Form extends React.Component<IProps, IState> {
|
||||
}
|
||||
|
||||
public async onSubmit(e: React.FormEvent<HTMLFormElement> | null) {
|
||||
e?.preventDefault();
|
||||
const allChildren = this.getAllChildrenFields(e);
|
||||
const elementsValues = allChildren
|
||||
.filter((e) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user