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 anchor = React.useRef<HTMLDivElement>();
|
||||||
const scrollPosition = useElementScroll(anchor);
|
const scrollPosition = useElementScroll(anchor);
|
||||||
|
|
||||||
const dropShadow = anchor.current
|
const dropShadow =
|
||||||
? scrollPosition.y + anchor.current.clientHeight <
|
anchor.current && scrollPosition
|
||||||
anchor.current.scrollHeight
|
? scrollPosition.y + anchor.current.clientHeight <
|
||||||
: false;
|
anchor.current.scrollHeight
|
||||||
|
: false;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className={classes.root}>
|
<Card className={classes.root}>
|
||||||
|
|
Loading…
Reference in a new issue