File tree Expand file tree Collapse file tree 3 files changed +308
-14
lines changed Expand file tree Collapse file tree 3 files changed +308
-14
lines changed Original file line number Diff line number Diff line change 53
53
"@types/jest" : " 26.0.23" ,
54
54
"@types/storybook__react" : " 5.2.1" ,
55
55
"autoprefixer" : " 9.8.6" ,
56
+ "babel-jest" : " 27.0.6" ,
56
57
"babel-loader" : " 8.2.2" ,
57
58
"cssnano" : " 4.1.11" ,
58
59
"eslint-plugin-prettier" : " 3.3.1" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const style: React.CSSProperties = {
22
22
display : 'inline-block' ,
23
23
position : 'relative' ,
24
24
} ;
25
+
25
26
const semanticInputProps = [
26
27
'autoComplete' ,
27
28
'autoFocus' ,
@@ -152,11 +153,11 @@ class SemanticDatepicker extends React.Component<
152
153
} ;
153
154
}
154
155
155
- get date ( ) {
156
+ get date ( ) : Date | undefined {
156
157
const { selectedDate } = this . state ;
157
158
const { date } = this . props ;
158
159
159
- if ( ! selectedDate ) {
160
+ if ( date || ! selectedDate ) {
160
161
return date ;
161
162
}
162
163
You can’t perform that action at this time.
0 commit comments