Skip to content

Commit

Permalink
preserved bootstrap className for arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmaguitar committed Jul 10, 2018
1 parent a89b29f commit a42496a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PopperContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const defaultProps = {
hideArrow: false,
isOpen: false,
offset: 0,
arrowClassName: 'arrow',
fallbackPlacement: 'flip',
flip: true,
container: 'body',
Expand Down Expand Up @@ -147,7 +146,10 @@ class PopperContent extends React.Component {
modifiers,
...attrs
} = this.props;
const arrowClassName = mapToCssModules(_arrowClassName, cssModule);
const arrowClassName = mapToCssModules(classNames(
'arrow',
_arrowClassName
), cssModule);
const placement = (this.state.placement || attrs.placement).split('-')[0];
const popperClassName = mapToCssModules(classNames(
className,
Expand Down

0 comments on commit a42496a

Please sign in to comment.