Skip to content

Timeline.Body should use <div> instead of <p> #602

@multiwebinc

Description

@multiwebinc

Describe the bug
Since <div> cannot be a child of <p>, using a <div> as a child of Timeline.Body produces the following error:

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.

There is no reason for children of Timeline.Body to be limited to valid children of <p> tags.

To Reproduce

  <Timeline>
    <Timeline.Item>
      <Timeline.Point />
      <Timeline.Content>
        <Timeline.Title>Title</Timeline.Title>
        <Timeline.Body><div>test</div></Timeline.Body>
      </Timeline.Content>
    </Timeline.Item>
  </Timeline>

Project information:

  • Tailwind: 3.2.6
  • Flowbite: 1.6.3
  • Flowbite React: 0.3.8
  • Type: Nextjs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions