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 ui improvements - #226 by @benekex2
|
||||
- Fix attribute errors - #216 by @dominik-zeglen
|
||||
|
||||
- Fix column picker - #228 by @dominik-zeglen
|
||||
|
|
|
@ -87,7 +87,8 @@ const ColumnPickerContent: React.FC<ColumnPickerContentProps> = props => {
|
|||
const anchor = React.useRef<HTMLDivElement>();
|
||||
const scrollPosition = useElementScroll(anchor);
|
||||
|
||||
const dropShadow = anchor.current
|
||||
const dropShadow =
|
||||
anchor.current && scrollPosition
|
||||
? scrollPosition.y + anchor.current.clientHeight <
|
||||
anchor.current.scrollHeight
|
||||
: false;
|
||||
|
|
Loading…
Reference in a new issue