Skip to content

BREAKING CHANGE - Caused by Collapse v8.0.0 wrapping {children} in <div ref={contentRef} className="collapse-content"> #187

@TzolkinB

Description

@TzolkinB

<div ref={contentRef} className='collapse-content'>

Issue:
Wrapping children in a div means that is no longer a child of . The css, justify-content: space-between, can no longer apply so the navbar documentation code examples with left and right aligned items no longer work.

https://mdbootstrap.com/docs/react/navigation/navbar/#subsection-centered -- This example gets an error
Error:
TS2322: Type '{ children: Element; navbar: true; open: boolean; center: true; id: string; }' is not assignable to type 'IntrinsicAttributes & CollapseProps'.
Property 'center' does not exist on type 'IntrinsicAttributes & CollapseProps'.

https://mdbootstrap.com/docs/react/navigation/navbar/#subsection-right-aligned
https://mdbootstrap.com/docs/react/navigation/navbar/#subsection-forms
https://mdbootstrap.com/docs/react/navigation/navbar/#subsection-text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions