From 0d5ae6487fce3a7d7738d30f2f0eb032c9da89f4 Mon Sep 17 00:00:00 2001 From: jpveooys <66470099+jpveooys@users.noreply.github.com> Date: Tue, 23 Nov 2021 15:46:55 +0000 Subject: [PATCH] feat(DatePickerE): Remove deprecated value prop and incorrect spread --- .../src/components/DatePickerE/DatePickerE.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/react-component-library/src/components/DatePickerE/DatePickerE.tsx b/packages/react-component-library/src/components/DatePickerE/DatePickerE.tsx index 23df54aa8a..fe152a584d 100644 --- a/packages/react-component-library/src/components/DatePickerE/DatePickerE.tsx +++ b/packages/react-component-library/src/components/DatePickerE/DatePickerE.tsx @@ -75,11 +75,6 @@ export interface DatePickerEProps * Start date of the picker (the first date selected by end user). */ startDate?: Date - /** - * Optional HTML `value` attribute associated with the component. - * @deprecated - */ - value?: string /** * Toggles whether or not the picker is open. */ @@ -112,7 +107,6 @@ export const DatePickerE: React.FC = ({ onChange, onCalendarFocus, startDate, - value, isOpen, disabledDays, initialMonth, @@ -145,7 +139,7 @@ export const DatePickerE: React.FC = ({ const { from, to } = state const modifiers = { start: from, end: to } - const hasContent = !!((value && value.length) || from) + const hasContent = Boolean(from) const titleId = getId('datepicker-title') const contentId = getId('day-picker') @@ -243,7 +237,6 @@ export const DatePickerE: React.FC = ({ aria-live="polite" style={{ ...styles.popper, ...TRANSITION_STYLES[transitionState] }} {...attributes.popper} - {...rest} >