I've created a basic Kendo React Form, but nothing happens when I hit 'Submit'. Why doesn't the alert get called?
import * as React from "react";
import * as ReactDOM from "react-dom";
import { Field, Form, FormElement } from "@progress/kendo-react-form";
const handleSubmit1 = (dataItem) => {
alert(1);
};
const AppComponent = () => {
return (
<Form
onSubmit={handleSubmit1}
render={(formRenderProps) => (
<FormElement>
<button type={"submit"} disabled={false}>
Submit
</button>
</FormElement>
)}
/>
);
};
ReactDOM.render(<AppComponent />, document.querySelector("my-app"));
Working example here:
https://codesandbox.io/s/black-currying-459p5h?file=/app/main.jsx