Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inputProps to the outputted typescript definitions #1208

Merged
merged 1 commit into from Jul 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/src/__tests__/e2e/DatePicker.test.tsx
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
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
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