Open Steven7926 opened 1 month ago
@Steven7926 and @brandonlenz (saw you've reviewed some things recently) - put up a quick PR for this one in case anyone has cycles to review: https://github.com/trussworks/react-uswds/pull/2949
Looks like workflows need approval from a maintainer as well.
ReactUSWDS Version & USWDS Version:
Describe the bug
When building a form using your component library I kept running into a console waring stating:
Upon further investigation I found that this was coming from the DatePicker component. At the end of DatePicker.tsx you are using DatePicker.defaultProps = { minDate: DEFAULT_MIN_DATE, } to set a minimum allowable date for the datepicker component, this is trggering the warning.
defaultProps is also used in the Tooltip component. To Reproduce Steps to reproduce the behavior:
Expected behavior
No warning should appear in the console to prep your library for deprecating feature support.
Screenshots
Additional context
Device and Browser Information (please complete the following information if describing a UI bug): Google Chrome running a Vite React application on Windows.