Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1015 from taion/OverlayTrigger-ani…
Browse files Browse the repository at this point in the history
…mation

Forward animation prop to Overlay from trigger
  • Loading branch information
jquense committed Jul 17, 2015
2 parents e2bad35 + cb6fc61 commit 6b8a940
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/OverlayTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function isOneOf(one, of) {
}

const OverlayTrigger = React.createClass({

propTypes: {

...Overlay.propTypes,
Expand Down Expand Up @@ -142,12 +141,17 @@ const OverlayTrigger = React.createClass({
React.render(this._overlay, this._mountNode);
},

getOverlay(){
getOverlayTarget() {
return React.findDOMNode(this);
},

getOverlay() {
let props = {
show: this.state.isOverlayShown,
onHide: this.hide,
rootClose: this.props.rootClose,
target: ()=> React.findDOMNode(this),
animation: this.props.animation,
target: this.getOverlayTarget,
placement: this.props.placement,
container: this.props.container,
containerPadding: this.props.containerPadding
Expand Down

0 comments on commit 6b8a940

Please sign in to comment.