diff --git a/src/popper_component.jsx b/src/popper_component.jsx index 7f33791de..2de8dda82 100644 --- a/src/popper_component.jsx +++ b/src/popper_component.jsx @@ -1,22 +1,9 @@ import classnames from "classnames"; import React from "react"; import PropTypes from "prop-types"; -import { Manager, Reference, Popper } from "react-popper"; +import { Manager, Reference, Popper, placements } from "react-popper"; -export const popperPlacementPositions = [ - "bottom", - "bottom-end", - "bottom-start", - "left", - "left-end", - "left-start", - "right", - "right-end", - "right-start", - "top", - "top-end", - "top-start" -]; +export const popperPlacementPositions = placements; export default class PopperComponent extends React.Component { static propTypes = {