File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,12 @@ var ReactGoogleAutocomplete = function (_React$Component) {
8989 } , {
9090 key : 'componentWillUnmount' ,
9191 value : function componentWillUnmount ( ) {
92- this . event . remove ( ) ;
92+ if ( this . event ) this . event . remove ( ) ;
9393 }
9494 } , {
9595 key : 'onSelected' ,
9696 value : function onSelected ( ) {
97- if ( this . props . onPlaceSelected ) {
97+ if ( this . props . onPlaceSelected && this . autocomplete ) {
9898 this . props . onPlaceSelected ( this . autocomplete . getPlace ( ) , this . refs . input ) ;
9999 }
100100 }
Original file line number Diff line number Diff line change 11{
22 "name" : " react-google-autocomplete" ,
3- "version" : " 1.1.1 " ,
3+ "version" : " 1.1.2 " ,
44 "description" : " React component for google autocomplete." ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments