From 13dcbda12f03d17c6adad90f6ba638108b3a7c61 Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Mon, 6 Aug 2018 13:20:29 +1000 Subject: [PATCH] Fix unrecognised `forwardedRef` prop error Have `withGlobalEvents` omit the `forwardedRef` prop. This prevents the prop being added to HTML in some cases, e.g. when used in `FocusableIframe`. --- packages/compose/src/with-global-events/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compose/src/with-global-events/index.js b/packages/compose/src/with-global-events/index.js index f9d2c8b194756..f00f222a2d2be 100644 --- a/packages/compose/src/with-global-events/index.js +++ b/packages/compose/src/with-global-events/index.js @@ -61,12 +61,12 @@ function withGlobalEvents( eventTypesToHandlers ) { } render() { - return ; + return ; } } return forwardRef( ( props, ref ) => { - return ; + return ; } ); }, 'withGlobalEvents' ); }