Skip to content

Commit

Permalink
fix double click issue on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtran committed Mar 20, 2020
1 parent ce7d290 commit c10107b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/DatePicker/Day.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Day = ({
}

function handleHoverDate() {
if (disabled) return;
if (disabled || !onHoverDate) return;
onHoverDate(dateValue);
}

Expand Down
1 change: 0 additions & 1 deletion src/lib/components/DatePicker/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ const Dialog = ({
toDate={toDate}
hoverDate={hoverDate}
onSelectDate={onSelectDate}
onHoverDate={onHoverDate}
startWeekDay={startWeekDay}
minDate={minDate}
maxDate={maxDate}
Expand Down
4 changes: 0 additions & 4 deletions src/lib/components/DatePicker/DialogContentMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const DialogContentMobile = ({
toDate,
hoverDate,
onSelectDate,
onHoverDate,
startWeekDay,
minDate,
maxDate,
Expand Down Expand Up @@ -63,7 +62,6 @@ const DialogContentMobile = ({
month={month}
year={year}
onSelectDate={onSelectDate}
onHoverDate={onHoverDate}
fromDate={fromDate}
toDate={toDate}
hoverDate={hoverDate}
Expand Down Expand Up @@ -128,7 +126,6 @@ DialogContentMobile.propTypes = {
toDate: PropTypes.instanceOf(Date),
hoverDate: PropTypes.instanceOf(Date),
onSelectDate: PropTypes.func,
onHoverDate: PropTypes.func,
startWeekDay: PropTypes.string,
minDate: PropTypes.instanceOf(Date),
maxDate: PropTypes.instanceOf(Date),
Expand All @@ -142,7 +139,6 @@ DialogContentMobile.defaultProps = {
toDate: null,
hoverDate: null,
onSelectDate: () => {},
onHoverDate: () => {},
startWeekDay: null,
minDate: null,
maxDate: null,
Expand Down

0 comments on commit c10107b

Please sign in to comment.