Skip to content

Commit

Permalink
extracting clearText and clearable props from DateInputProps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Sasani committed Jan 29, 2022
1 parent fed6121 commit 0659e00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const DesktopDatePicker = React.forwardRef(function DesktopDatePicker<TDate>(

return (
<DesktopWrapper
{...other}
{...wrapperProps}
DateInputProps={AllDateInputProps}
KeyboardDateInputComponent={KeyboardDateInput}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ export interface InternalDesktopWrapperProps extends DesktopWrapperProps, Privat
function DesktopWrapper(props: InternalDesktopWrapperProps) {
const {
children,
DateInputProps,
DateInputProps: { clearText, clearable, ...DateInputProps },
KeyboardDateInputComponent,
onDismiss,
open,
PopperProps,
PaperProps,
TransitionComponent,
onClear,
clearText,
clearable,
} = props;
const ownInputRef = React.useRef<HTMLInputElement>(null);
const inputRef = useForkRef(DateInputProps.inputRef, ownInputRef);
Expand Down

0 comments on commit 0659e00

Please sign in to comment.