From 3b13f4ab71e98df3b429fdc0c4f0560d7a3ee418 Mon Sep 17 00:00:00 2001 From: Data-Meister Date: Wed, 20 Jan 2016 14:20:38 +0000 Subject: [PATCH] Add Modal propTypes for transition callbacks so it will be documented. --- src/Modal.js | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/Modal.js b/src/Modal.js index 46667bd5d3..45605f5f3d 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -78,7 +78,37 @@ const Modal = React.createClass({ * A callback fired when the header closeButton or non-static backdrop is * clicked. Required if either are specified. */ - onHide: React.PropTypes.func + onHide: React.PropTypes.func, + + /** + * Callback fired before the Modal transitions in + */ + onEnter: React.PropTypes.func, + + /** + * Callback fired as the Modal begins to transition in + */ + onEntering: React.PropTypes.func, + + /** + * Callback fired after the Modal finishes transitioning in + */ + onEntered: React.PropTypes.func, + + /** + * Callback fired right before the Modal transitions out + */ + onExit: React.PropTypes.func, + + /** + * Callback fired as the Modal begins to transition out + */ + onExiting: React.PropTypes.func, + + /** + * Callback fired after the Modal finishes transitioning out + */ + onExited: React.PropTypes.func }, childContextTypes: {