Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Warning shown is console "React does not recognize the openCalendar prop on a DOM element" #11342

Closed
2 tasks done
bvhrs213 opened this issue May 4, 2022 · 1 comment · Fixed by #11416
Closed
2 tasks done
Assignees
Labels
severity: 1 https://ibm.biz/carbon-severity type: bug 🐛

Comments

@bvhrs213
Copy link

bvhrs213 commented May 4, 2022

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 lowercase opencalendar 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

@tay1orjones
Copy link
Member

This should be fixed by #11416

@tay1orjones tay1orjones moved this to 🏗 In Progress in Design System May 16, 2022
@tay1orjones tay1orjones self-assigned this May 16, 2022
@kodiakhq kodiakhq bot closed this as completed in #11416 May 16, 2022
Repository owner moved this from 🏗 In Progress to ✅ Done in Design System May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: 1 https://ibm.biz/carbon-severity type: bug 🐛
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants