Skip to content

Commit 93a5160

Browse files
committed
Correct use of Node type in EventBoundary
This is a small fix for commit dab0a73 which resolves the Flow error concerning the use of the type `Node` in the props and return value of the EventBoundary component
1 parent dab0a73 commit 93a5160

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/webapp/ui/src/components/EventBoundary.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//@flow
22

3-
import React from "react";
3+
import React, { type Node } from "react";
44

55
/**
66
* All of the DOM events that happen inside of a dialog shouldn't propagate
77
* outside as the menu will take them to be events that it should respond to by
88
* providing keyboard navigation. See ../../../../QuirksOfMaterialUi.md, secion
99
* "Dialogs inside Menus", for more information.
1010
*/
11-
export default ({ children }: { children: Node }) => (
11+
export default ({ children }: { children: Node }): Node => (
1212
/*
1313
* The eslint suppression is required because `div`s should not ordinarilly
1414
* have event handlers as they cannot be focussed. However, in this case, we

0 commit comments

Comments
 (0)