We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Since <div> cannot be a child of <p>, using a <div> as a child of Timeline.Body produces the following error:
<div>
<p>
Timeline.Body
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:
The text was updated successfully, but these errors were encountered:
Let Timeline.Body have non-text content
b6695ad
Fixes themesberg#602
feat(/lib/components/timeline): change <Timeline.Body> to a <div> (…
<Timeline.Body>
720c8ef
…#603) This component previously defaulted to `<p>` which is needlessly opinionated. Fixes #602 Co-authored-by: Conner Davis <[email protected]>
Successfully merging a pull request may close this issue.
Describe the bug
Since
<div>
cannot be a child of<p>
, using a<div>
as a child ofTimeline.Body
produces the following error:There is no reason for children of
Timeline.Body
to be limited to valid children of<p>
tags.To Reproduce
Project information:
The text was updated successfully, but these errors were encountered: