From 2484d3625a355992e3d93fd6427c6cdda2f091f5 Mon Sep 17 00:00:00 2001 From: Jonatan Lundqvist Meden <2929793+jontelm@users.noreply.github.com> Date: Thu, 19 Apr 2018 09:35:31 +0200 Subject: [PATCH] adeded event.preventDefault() --- package-lock.json | 2 +- src/calendar/CalendarDate.jsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 87a43388..aa85ffaf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-daterange-picker", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/calendar/CalendarDate.jsx b/src/calendar/CalendarDate.jsx index 87ba6930..727826b3 100644 --- a/src/calendar/CalendarDate.jsx +++ b/src/calendar/CalendarDate.jsx @@ -81,6 +81,7 @@ const CalendarDate = createClass({ }, touchEnd() { + event.preventDefault(); this.props.onHighlightDate(this.props.date); this.props.onSelectDate(this.props.date);