[Bug]: Warning shown is console "React does not recognize the openCalendar
prop on a DOM element"
#11342
Closed
2 tasks done
Labels
Package
@carbon/react
Browser
Chrome
Package version
v8.2.0
React version
v17.0.2
Description
A Warning is shown in webcosole when the DatePicker is used. I did not use the openCalendar prop.
"React does not recognize the
openCalendar
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercaseopencalendar
instead. If you accidentally passed it from a parent component, remove it from the DOM element."CodeSandbox example
_
Steps to reproduce
Add the DatePicker with two DatePickerInputs for select a Date range.
<DatePicker
datePickerType="range"
className="date-picker-range-classname"
size="md"
locale="en"
dateFormat="d M Y"
Code of Conduct
The text was updated successfully, but these errors were encountered: