Skip to content
New issue

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

div invalid child of p #103

Open
afrankel-sfdo opened this issue Jan 21, 2019 · 1 comment
Open

div invalid child of p #103

afrankel-sfdo opened this issue Jan 21, 2019 · 1 comment

Comments

@afrankel-sfdo
Copy link

Issue

Can't use truncate when inside of a <p>

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.
    in div (at Truncate.js:33)

Suggestion

Use span over div, or make it configurable as neither is valid in all use cases.

See similar issue from resize detector: maslianok/react-resize-detector#48

@gerwinbrunner
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants