Skip to content

DBAccordionItem: Usage of property defaultOpen generates console error #6489

@titustls

Description

@titustls

Which generators are affected?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

When using Property defaultOpenon <DBAccordionItem> generates a console error, although the property is listed in the Docs for DBAccordionItem.

Example Usage

<DBAccordion>
   <DBAccordionItem headline="Details" defaultOpen={true}>
      Summary
   </DBAccordionItem>
</DBAccordion>

Stackblitz Example

Console Warning/Error:

Warning: React does not recognize the defaultOpenprop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercasedefaultopen instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Expected Behaviour

Using the property defaultOpen should not generate a Console Warning/Error.

Screenshots

No response

Browser version

None

Add any other context about the problem here.

Also happens when using <DBAccordionItem> standalone without a <DBAccordion> container wrapping it.

Which DB business unit do you work for?

DB Systel GmbH (please name your customer below)

”DB Systel” please enter your customer / ”other” please enter your area or business unit.

DBInfraGO

What project are you working on?

NTPDataGO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions