diff --git a/opentech/static_src/src/app/src/components/GroupedListing/index.js b/opentech/static_src/src/app/src/components/GroupedListing/index.js index e1e1143308958a6f9ffb82a6f0a3e7916fe4717c..88bd5dc9e075c8f18a9e4757de8136ac7190c607 100644 --- a/opentech/static_src/src/app/src/components/GroupedListing/index.js +++ b/opentech/static_src/src/app/src/components/GroupedListing/index.js @@ -120,7 +120,7 @@ export default class GroupedListing extends React.Component { // set css custom prop to allow scrolling from dropdown to last item in the list if (this.listRef.current) { - document.documentElement.style.setProperty('--last-listing-item-height', this.listRef.current.firstChild.lastElementChild.offsetHeight + 'px'); + document.documentElement.style.setProperty('--last-listing-item-height', this.listRef.current.lastElementChild.offsetHeight + 'px'); } return (