Skip to content

Commit

Permalink
Forward animation prop to Overlay from trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Jia committed Jul 17, 2015
1 parent e2bad35 commit cb6fc61
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 cb6fc61

Please sign in to comment.