From d8138807a2c9fd807b70138b4c625103a3283f89 Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Wed, 23 Oct 2019 14:21:34 +0200 Subject: [PATCH 1/2] Fix column picker --- src/components/ColumnPicker/ColumnPickerContent.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/ColumnPicker/ColumnPickerContent.tsx b/src/components/ColumnPicker/ColumnPickerContent.tsx index bef6aa779..bffe1bc82 100644 --- a/src/components/ColumnPicker/ColumnPickerContent.tsx +++ b/src/components/ColumnPicker/ColumnPickerContent.tsx @@ -87,10 +87,11 @@ const ColumnPickerContent: React.FC = props => { const anchor = React.useRef(); const scrollPosition = useElementScroll(anchor); - const dropShadow = anchor.current - ? scrollPosition.y + anchor.current.clientHeight < - anchor.current.scrollHeight - : false; + const dropShadow = + anchor.current && scrollPosition + ? scrollPosition.y + anchor.current.clientHeight < + anchor.current.scrollHeight + : false; return ( From f52b59c843ffc9652a45a3eb23145c0c53a90cb9 Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Wed, 23 Oct 2019 14:22:12 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19c170bb5..6248ae6a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,3 +43,4 @@ All notable, unreleased changes to this project will be documented in this file. - Add language switch - #213 by @dominik-zeglen - Fix copy - #223, #224 by @dominik-zeglen - Fix attribute errors - #216 by @dominik-zeglen +- Fix column picker - #228 by @dominik-zeglen