From 9d99958aca985f682e35748c232ecab9a6556f23 Mon Sep 17 00:00:00 2001 From: Sierra Crum Date: Fri, 7 Feb 2020 10:36:26 -0800 Subject: [PATCH 1/2] Fix failing snapshot --- tests/__snapshots__/FullCalendar.spec.js.snap | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/__snapshots__/FullCalendar.spec.js.snap b/tests/__snapshots__/FullCalendar.spec.js.snap index 9a28ab07..02f0fbc7 100644 --- a/tests/__snapshots__/FullCalendar.spec.js.snap +++ b/tests/__snapshots__/FullCalendar.spec.js.snap @@ -724,6 +724,7 @@ exports[`FullCalendar renders date mode correctly 1`] = ` aria-owns="undefined_list" autocomplete="off" class="rc-select-selection-search-input" + readonly="" role="combobox" style="opacity:0" value="" @@ -764,6 +765,7 @@ exports[`FullCalendar renders date mode correctly 1`] = ` aria-owns="undefined_list" autocomplete="off" class="rc-select-selection-search-input" + readonly="" role="combobox" style="opacity:0" value="" @@ -1503,6 +1505,7 @@ exports[`FullCalendar renders fullscreen correctly 1`] = ` aria-owns="undefined_list" autocomplete="off" class="rc-select-selection-search-input" + readonly="" role="combobox" style="opacity:0" value="" @@ -1543,6 +1546,7 @@ exports[`FullCalendar renders fullscreen correctly 1`] = ` aria-owns="undefined_list" autocomplete="off" class="rc-select-selection-search-input" + readonly="" role="combobox" style="opacity:0" value="" @@ -2282,6 +2286,7 @@ exports[`FullCalendar renders month mode correctly 1`] = ` aria-owns="undefined_list" autocomplete="off" class="rc-select-selection-search-input" + readonly="" role="combobox" style="opacity:0" value="" @@ -2510,6 +2515,7 @@ exports[`FullCalendar type renders defaultType correctly 1`] = ` aria-owns="undefined_list" autocomplete="off" class="rc-select-selection-search-input" + readonly="" role="combobox" style="opacity:0" value="" @@ -2550,6 +2556,7 @@ exports[`FullCalendar type renders defaultType correctly 1`] = ` aria-owns="undefined_list" autocomplete="off" class="rc-select-selection-search-input" + readonly="" role="combobox" style="opacity:0" value="" From df8ebbb9e227a4ede9e34edbccda13c10a230def Mon Sep 17 00:00:00 2001 From: Sierra Crum Date: Fri, 7 Feb 2020 10:36:48 -0800 Subject: [PATCH 2/2] Fix for clear button not working on RangeCalendar --- src/RangeCalendar.tsx | 2 ++ src/range-calendar/CalendarPart.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/RangeCalendar.tsx b/src/RangeCalendar.tsx index ca5b801a..73ebf99f 100644 --- a/src/RangeCalendar.tsx +++ b/src/RangeCalendar.tsx @@ -802,6 +802,7 @@ class RangeCalendar extends React.Component {seperator}
diff --git a/src/range-calendar/CalendarPart.tsx b/src/range-calendar/CalendarPart.tsx index 28745818..a6cc4d11 100644 --- a/src/range-calendar/CalendarPart.tsx +++ b/src/range-calendar/CalendarPart.tsx @@ -83,6 +83,7 @@ const CalendarPart: React.FC = props => { enablePrev, enableNext, clearIcon, + onClear, showClear, inputMode, } = props; @@ -120,6 +121,7 @@ const CalendarPart: React.FC = props => { placeholder={placeholder} value={value as Moment} showClear={showClear || false} + onClear={onClear} selectedValue={selectedValue[index]} onChange={onInputChange} onSelect={onInputSelect}