From 6b4a0f2eb47f67fff7f8179f595969a6b26e0fb8 Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Tue, 19 Apr 2022 22:08:45 +0430 Subject: [PATCH] update App.js, src/components/DateRangePicker/index.js and src/components/TestComponentNew/index.js --- src/components/DateRangePicker/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/DateRangePicker/index.js b/src/components/DateRangePicker/index.js index 93af355..ecbe741 100644 --- a/src/components/DateRangePicker/index.js +++ b/src/components/DateRangePicker/index.js @@ -37,7 +37,7 @@ function CustomRangeInput({ openCalendar, value }) { // let from = value[0] || ""; // let to = value[1] || ""; - // value = from && to ? "از " + from + "، تا " + to": from + value = from && to ? "از " + from + "، تا " + to": from useEffect(() => { openCalendar(); }, []); @@ -64,6 +64,7 @@ const DateRangePicker = () => { minDate={new Date()} renderButton={} render={} + onClose={() => false} calendarPosition="bottom-right" // plugins={[]} />