Skip to content

Commit

Permalink
Replace usage of react-overflow in IdeaGroup with custom overflow che…
Browse files Browse the repository at this point in the history
…cking component
  • Loading branch information
vanderhoop committed Jun 14, 2020
1 parent bce6468 commit c29f9d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/static/js/components/idea_group.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { Component } from "react"
import PropTypes from "prop-types"
import cx from "classnames"
import { OverflowDetector } from "react-overflow"

import * as AppPropTypes from "../prop_types"
import styles from "./css_modules/idea_group.css"
import ideaStyles from "./css_modules/idea.css"
import GroupLabelContainer from "./group_label_container"
import VotingInterface from "./voting_interface"
import OverflowDetector from "./overflow_detector"

import STAGES from "../configs/stages"

Expand Down Expand Up @@ -64,8 +64,9 @@ class IdeaGroup extends Component {
</div>

<OverflowDetector
onOverflowChange={this.handleListOverflowChange}
className={listContainerClasses}
elementType="div"
onOverflowChange={this.handleListOverflowChange}
>
<ul className={styles.list}>
{groupWithAssociatedIdeasAndVotes.ideas.map(idea => {
Expand Down

0 comments on commit c29f9d2

Please sign in to comment.