diff --git a/opentech/static_src/src/app/src/components/Listing/index.js b/opentech/static_src/src/app/src/components/Listing/index.js index d1c8d0675c2ad92f38711fa7b867d5493a5520cf..4144bc3dc3d2fbbabfb6005736fd6fd466f2c7cc 100644 --- a/opentech/static_src/src/app/src/components/Listing/index.js +++ b/opentech/static_src/src/app/src/components/Listing/index.js @@ -73,10 +73,10 @@ export default class Listing extends React.Component { // set css custom prop to allow scrolling from dropdown to last item in the list setLastItemHeight() { - const { listRef } = this.props; - if (listRef.current) { - document.documentElement.style.setProperty('--last-listing-item-height', listRef.current.lastElementChild.offsetHeight + 'px'); - } + // const { listRef } = this.props; + // if (listRef.current) { + // document.documentElement.style.setProperty('--last-listing-item-height', listRef.current.lastElementChild.offsetHeight + 'px'); + // } } render() {