File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,14 @@ var CommentList = React.createClass({
101
101
var CommentForm = React . createClass ( {
102
102
handleSubmit : function ( e ) {
103
103
e . preventDefault ( ) ;
104
- var author = this . refs . author . getDOMNode ( ) . value . trim ( ) ;
105
- var text = this . refs . text . getDOMNode ( ) . value . trim ( ) ;
104
+ var author = React . findDOMNode ( this . refs . author ) . value . trim ( ) ;
105
+ var text = React . findDOMNode ( this . refs . text ) . value . trim ( ) ;
106
106
if ( ! text || ! author ) {
107
107
return ;
108
108
}
109
109
this . props . onCommentSubmit ( { author : author , text : text } ) ;
110
- this . refs . author . getDOMNode ( ) . value = '' ;
111
- this . refs . text . getDOMNode ( ) . value = '' ;
110
+ React . findDOMNode ( this . refs . author ) . value = '' ;
111
+ React . findDOMNode ( this . refs . text ) . value = '' ;
112
112
} ,
113
113
render : function ( ) {
114
114
return (
You can’t perform that action at this time.
0 commit comments