Merge pull request #228 from mirumee/fix/product-list-columns
Fix column picker
This commit is contained in:
commit
6bf33eb728
2 changed files with 6 additions and 5 deletions
|
@ -44,4 +44,4 @@ All notable, unreleased changes to this project will be documented in this file.
|
||||||
- Fix copy - #223, #224 by @dominik-zeglen
|
- Fix copy - #223, #224 by @dominik-zeglen
|
||||||
- Fix ui improvements - #226 by @benekex2
|
- Fix ui improvements - #226 by @benekex2
|
||||||
- Fix attribute errors - #216 by @dominik-zeglen
|
- Fix attribute errors - #216 by @dominik-zeglen
|
||||||
|
- Fix column picker - #228 by @dominik-zeglen
|
||||||
|
|
|
@ -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