From abd04bcdc66ab8cd273c40e3f8c95ea45d38287a Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Tue, 2 Jan 2018 15:27:16 +0300 Subject: [PATCH] Fix WindowScroller scrollElement prop types for window --- source/WindowScroller/WindowScroller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/WindowScroller/WindowScroller.js b/source/WindowScroller/WindowScroller.js index fe67a247c..4c041f665 100644 --- a/source/WindowScroller/WindowScroller.js +++ b/source/WindowScroller/WindowScroller.js @@ -36,8 +36,7 @@ type Props = { onScroll: (params: {scrollLeft: number, scrollTop: number}) => void, /** Element to attach scroll event listeners. Defaults to window. */ - scrollElement: ?Element, - + scrollElement: ?(typeof window | Element), /** * Wait this amount of time after the last scroll event before resetting child `pointer-events`. */