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

Can we use Span instead of div in html.js #37

Closed
galliumsoft opened this issue Oct 11, 2018 · 1 comment
Closed

Can we use Span instead of div in html.js #37

galliumsoft opened this issue Oct 11, 2018 · 1 comment

Comments

@galliumsoft
Copy link

Hi, i get this error when i use the htmlellipsis component.. As i understand its because of the usage of

in the html.js component... can we change it to instead to avoid these errors?

Warning: validateDOMNesting(...):

cannot appear as a descendant of

.
in div (created by HTMLEllipsis)
in span (created by HTMLEllipsis)

@xiaody
Copy link
Owner

xiaody commented May 20, 2024

This component is designed to be a block level component. There is no reason to render it in a span.

@xiaody xiaody closed this as completed May 20, 2024
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