@@ -50,33 +50,35 @@ export interface StrictPortalProps {
5050 * Called when a close event happens
5151 *
5252 * @param {SyntheticEvent } event - React's original SyntheticEvent.
53- * @param {object } data - All props.
53+ * @param {object } props - All props.
54+ * @param {boolean } open - Whether or not the portal is displayed.
5455 */
55- onClose ?: ( event : React . MouseEvent < HTMLElement > , data : PortalProps ) => void
56+ onClose ?: ( event : React . MouseEvent < HTMLElement > , props : PortalProps , open : boolean ) => void
5657
5758 /**
5859 * Called when the portal is mounted on the DOM
5960 *
6061 * @param {null }
61- * @param {object } data - All props.
62+ * @param {object } props - All props.
6263 */
63- onMount ?: ( nothing : null , data : PortalProps ) => void
64+ onMount ?: ( nothing : null , props : PortalProps ) => void
6465
6566 /**
6667 * Called when an open event happens
6768 *
6869 * @param {SyntheticEvent } event - React's original SyntheticEvent.
69- * @param {object } data - All props.
70+ * @param {object } props - All props.
71+ * @param {boolean } open - Whether or not the portal is displayed.
7072 */
71- onOpen ?: ( event : React . MouseEvent < HTMLElement > , data : PortalProps ) => void
73+ onOpen ?: ( event : React . MouseEvent < HTMLElement > , props : PortalProps , open : boolean ) => void
7274
7375 /**
7476 * Called when the portal is unmounted from the DOM
7577 *
7678 * @param {null }
77- * @param {object } data - All props.
79+ * @param {object } props - All props.
7880 */
79- onUnmount ?: ( nothing : null , data : PortalProps ) => void
81+ onUnmount ?: ( nothing : null , props : PortalProps ) => void
8082
8183 /** Controls whether or not the portal is displayed. */
8284 open ?: boolean
0 commit comments