[React-wrapped components]: Issues with class fields #12087
Labels
bug
Something isn't working
dev
Needs some dev work
package: web components
Work necessary for the IBM.com Library web components package
Description
React-wrapped components are having issues within container/composite/component suites with errors like:
Specifically:
Relevant Lit Docs: https://lit.dev/docs/components/properties/#avoiding-issues-with-class-fields
The megamenu-tab code looks like this:
I'm guessing we can accomplish the same goal in a lit-specific way by updating those values within
connectedCallback
orfirstUpdated
methods.Component(s) impacted
c4d-megamenu-tab, c4d-locale-search
Browser
Firefox
Carbon for IBM.com version
v2.14.0
Severity
Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround.
Application/website
unknown
Package
@carbon/ibmdotcom-web-components
CodeSandbox example
https://stackblitz.com/edit/nextjs-ak9hzz?file=pages%2Findex.js
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: