Skip to content

Commit

Permalink
Add inputProps to the outputted typescript definitions (mui#1208)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko authored Jul 27, 2019
1 parent 661544f commit 42b2cad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/__tests__/e2e/DatePicker.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ test('Custom toolbar component', () => {
const component = mount(
<DatePicker
open
inputProps={{}}
value={new Date()}
onChange={jest.fn()}
ToolbarComponent={() => <div id="custom-toolbar" />}
Expand Down
1 change: 1 addition & 0 deletions lib/src/_shared/KeyboardDateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface KeyboardDateInputProps
onClick?: () => void;
validationError?: React.ReactNode;
inputValue: string;
inputProps?: TextFieldProps['inputProps'];
InputProps?: TextFieldProps['InputProps'];
/** Override input component */
TextFieldComponent?: React.ComponentType<TextFieldProps>;
Expand Down
1 change: 1 addition & 0 deletions lib/src/_shared/PureDateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface PureDateInputProps
/** Override input component */
TextFieldComponent?: React.ComponentType<TextFieldProps>;
InputProps?: TextFieldProps['InputProps'];
inputProps?: TextFieldProps['inputProps'];
inputValue: string;
validationError?: React.ReactNode;
}
Expand Down

0 comments on commit 42b2cad

Please sign in to comment.