File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class SemanticDatepicker extends React.Component {
58
58
keepOpenOnClear : PropTypes . bool ,
59
59
keepOpenOnSelect : PropTypes . bool ,
60
60
locale : PropTypes . object ,
61
+ onBlur : PropTypes . func ,
61
62
onDateChange : PropTypes . func . isRequired ,
62
63
placeholder : PropTypes . string ,
63
64
selected : PropTypes . oneOfType ( [
@@ -78,6 +79,7 @@ class SemanticDatepicker extends React.Component {
78
79
keepOpenOnClear : false ,
79
80
keepOpenOnSelect : false ,
80
81
locale : localeEn ,
82
+ onBlur : ( ) => { } ,
81
83
placeholder : null ,
82
84
pointing : 'left' ,
83
85
selected : null ,
@@ -235,10 +237,12 @@ class SemanticDatepicker extends React.Component {
235
237
} ) ;
236
238
} ;
237
239
238
- handleBlur = ( ) => {
239
- const { format } = this . props ;
240
+ handleBlur = event => {
241
+ const { format, onBlur } = this . props ;
240
242
const { typedValue } = this . state ;
241
243
244
+ onBlur ( event ) ;
245
+
242
246
if ( ! typedValue ) {
243
247
return ;
244
248
}
You can’t perform that action at this time.
0 commit comments