From 5c7d929d92f306127f5016b3084da2e791279d7d Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 15 Apr 2022 11:36:44 +0100 Subject: [PATCH] Refactor #1661 --- components/lib/calendar/Calendar.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index df5d889d8e..b22c19e4e2 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -252,7 +252,6 @@ export const Calendar = React.memo(React.forwardRef((props, ref) => { const navBackward = (event) => { if (props.disabled) { event.preventDefault(); - event.stopPropagation(); return; } @@ -276,7 +275,6 @@ export const Calendar = React.memo(React.forwardRef((props, ref) => { if (minDate && minDate > testDate) { setNavigationState(newViewDate); event.preventDefault(); - event.stopPropagation(); return; } } @@ -298,13 +296,11 @@ export const Calendar = React.memo(React.forwardRef((props, ref) => { updateViewDate(event, newViewDate); event.preventDefault(); - event.stopPropagation(); } const navForward = (event) => { if (props.disabled) { event.preventDefault(); - event.stopPropagation(); return; } @@ -325,7 +321,6 @@ export const Calendar = React.memo(React.forwardRef((props, ref) => { if (maxDate && maxDate < newViewDate) { setNavigationState(newViewDate); event.preventDefault(); - event.stopPropagation(); return; } } @@ -347,7 +342,6 @@ export const Calendar = React.memo(React.forwardRef((props, ref) => { updateViewDate(event, newViewDate); event.preventDefault(); - event.stopPropagation(); } const setNavigationState = (newViewDate) => {