Fix column picker
This commit is contained in:
parent
759561634d
commit
d8138807a2
1 changed files with 5 additions and 4 deletions
|
@ -87,10 +87,11 @@ const ColumnPickerContent: React.FC<ColumnPickerContentProps> = props => {
|
|||
const anchor = React.useRef<HTMLDivElement>();
|
||||
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 (
|
||||
<Card className={classes.root}>
|
||||
|
|
Loading…
Reference in a new issue