There was an error while loading. Please reload this page.
1 parent 1202e22 commit e421444Copy full SHA for e421444
playground/app.js
@@ -5,6 +5,7 @@ import MonacoEditor from "react-monaco-editor";
5
import { shouldRender } from "../src/utils";
6
import { samples } from "./samples";
7
import Form from "../src";
8
+import "react-app-polyfill/ie11";
9
10
const log = type => console.log.bind(console, type);
11
const toJson = val => JSON.stringify(val, null, 2);
src/components/Form.js
@@ -323,7 +323,11 @@ export default class Form extends Component {
323
324
submit() {
325
if (this.formElement) {
326
- this.formElement.dispatchEvent(new Event("submit", { cancelable: true }));
+ this.formElement.dispatchEvent(
327
+ new CustomEvent("submit", {
328
+ cancelable: true,
329
+ })
330
+ );
331
}
332
333
0 commit comments