File tree 5 files changed +14
-3
lines changed
5 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ v1.1.0 - Tue, 12 Apr 2016 13:03:08 GMT
2
+ --------------------------------------
3
+
4
+ - [ 6c03d17] ( ../../commit/6c03d17 ) [ added] trigger onAfterOpen callback when available. (#154 )
5
+
6
+
1
7
v1.0.0 - Sat, 09 Apr 2016 05:03:25 GMT
2
8
--------------------------------------
3
9
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-modal" ,
3
- "version" : " 1.0 .0" ,
3
+ "version" : " 1.1 .0" ,
4
4
"homepage" : " https://github.com/rackt/react-modal" ,
5
5
"authors" : [
6
6
" Ryan Florence" ,
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ var Modal = React.createClass({
32
32
overlay : React . PropTypes . object
33
33
} ) ,
34
34
appElement : React . PropTypes . instanceOf ( SafeHTMLElement ) ,
35
+ onAfterOpen : React . PropTypes . func ,
35
36
onRequestClose : React . PropTypes . func ,
36
37
closeTimeoutMS : React . PropTypes . number ,
37
38
ariaHideApp : React . PropTypes . bool ,
@@ -194,6 +195,10 @@ var ModalPortal = module.exports = React.createClass({
194
195
focusManager . markForFocusLater ( ) ;
195
196
this . setState ( { isOpen : true } , function ( ) {
196
197
this . setState ( { afterOpen : true } ) ;
198
+
199
+ if ( this . props . isOpen && this . props . onAfterOpen ) {
200
+ this . props . onAfterOpen ( ) ;
201
+ }
197
202
} . bind ( this ) ) ;
198
203
} ,
199
204
You can’t perform that action at this time.
0 commit comments