Skip to content
Snippets Groups Projects
Commit 3e1fe50b authored by Chris Lawton's avatar Chris Lawton Committed by Todd Dembrey
Browse files

comment out set last item height function

parent 263fdbb1
No related branches found
No related tags found
No related merge requests found
...@@ -73,10 +73,10 @@ export default class Listing extends React.Component { ...@@ -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 // set css custom prop to allow scrolling from dropdown to last item in the list
setLastItemHeight() { setLastItemHeight() {
const { listRef } = this.props; // const { listRef } = this.props;
if (listRef.current) { // if (listRef.current) {
document.documentElement.style.setProperty('--last-listing-item-height', listRef.current.lastElementChild.offsetHeight + 'px'); // document.documentElement.style.setProperty('--last-listing-item-height', listRef.current.lastElementChild.offsetHeight + 'px');
} // }
} }
render() { render() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment