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 5353 "@types/jest" : " 26.0.23" ,
5454 "@types/storybook__react" : " 5.2.1" ,
5555 "autoprefixer" : " 9.8.6" ,
56+ "babel-jest" : " 27.0.6" ,
5657 "babel-loader" : " 8.2.2" ,
5758 "cssnano" : " 4.1.11" ,
5859 "eslint-plugin-prettier" : " 3.3.1" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const style: React.CSSProperties = {
2222 display : 'inline-block' ,
2323 position : 'relative' ,
2424} ;
25+
2526const semanticInputProps = [
2627 'autoComplete' ,
2728 'autoFocus' ,
@@ -152,11 +153,11 @@ class SemanticDatepicker extends React.Component<
152153 } ;
153154 }
154155
155- get date ( ) {
156+ get date ( ) : Date | undefined {
156157 const { selectedDate } = this . state ;
157158 const { date } = this . props ;
158159
159- if ( ! selectedDate ) {
160+ if ( date || ! selectedDate ) {
160161 return date ;
161162 }
162163
You can’t perform that action at this time.
0 commit comments