Skip to content

Commit

Permalink
Address PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
todor-a committed Jul 14, 2020
1 parent b9aa6cc commit db16c0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/src/__tests__/DatePickerTestingLib.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ describe('<DatePicker />', () => {
expect(screen.queryByRole('dialog')).toBeInTheDocument();
});

it('Does not call onChange if same date selected', async () => {
it('does not call onChange if same date selected', async () => {
const onChangeMock = jest.fn();

render(
<DesktopDatePicker
TransitionComponent={FakeTransitionComponent}
disableCloseOnSelect
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
onChange={onChangeMock}
renderInput={props => <TextField {...props} />}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/views/Calendar/Day.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ export interface DayProps extends ExtendMui<ButtonBaseProps> {

const PureDay: React.FC<DayProps> = ({
allowKeyboardControl,
allowSameDateSelection = false,
className,
day,
disabled,
allowSameDateSelection = false,
disableHighlightToday = false,
disableMargin = false,
focusable = false,
Expand Down

0 comments on commit db16c0b

Please sign in to comment.