Skip to content

Commit

Permalink
Fix Cypress tests and ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed May 9, 2020
1 parent e20f7f2 commit 1534d99
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/pages/demo/datepicker/CustomInput.example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function CustomInput() {
renderInput={({ ref, inputProps, InputProps }) => (
<InputContainer ref={ref}>
<input {...inputProps} />
{InputProps.endAdornment}
{InputProps?.endAdornment}
</InputContainer>
)}
/>
Expand Down
10 changes: 8 additions & 2 deletions docs/pages/regression/Regression.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,15 @@ function Regression() {
onChange={changeRange}
renderInput={(startProps, endProps) => (
<>
<TextField {...startProps} inputProps={{ 'data-mui-test': 'desktop-range-picker' }} />
<TextField
{...startProps}
inputProps={{ ...startProps.inputProps, 'data-mui-test': 'desktop-range-picker' }}
/>
<DateRangeDelimiter> to </DateRangeDelimiter>
<TextField {...endProps} inputProps={{ 'data-mui-test': 'desktop-range-picker-end' }} />
<TextField
{...endProps}
inputProps={{ ...endProps.inputProps, 'data-mui-test': 'desktop-range-picker-end' }}
/>
</>
)}
/>
Expand Down
22 changes: 11 additions & 11 deletions lib/.size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"build/dist/material-ui-pickers.esm.js": {
"bundled": 188938,
"minified": 101335,
"gzipped": 26402,
"bundled": 189105,
"minified": 101411,
"gzipped": 26429,
"treeshaked": {
"rollup": {
"code": 83375,
"code": 83443,
"import_statements": 2121
},
"webpack": {
"code": 92851
"code": 92919
}
}
},
"build/dist/material-ui-pickers.umd.js": {
"bundled": 299832,
"minified": 116954,
"gzipped": 33374
"bundled": 300017,
"minified": 117022,
"gzipped": 33387
},
"build/dist/material-ui-pickers.umd.min.js": {
"bundled": 258486,
"minified": 107815,
"gzipped": 30601
"bundled": 258671,
"minified": 107883,
"gzipped": 30626
}
}

0 comments on commit 1534d99

Please sign in to comment.