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

Setting a dangerouslySetInnerHTML attribute on the ShowMoreText component, it stops working correctly #39

Open
hane-smitter opened this issue May 7, 2022 · 4 comments

Comments

@hane-smitter
Copy link

wanting to render html on page, so setting th attribute "dangerouslySetInnerHTML", but doing this breaks the functionality

@nandinipanchal001
Copy link

yes , facing the same issue

@meetbryce
Copy link

are you getting the error children.split is not a function?

@iraklimurusidze
Copy link

@meetbryce I'm getting children.split is not a function when I set keepNewLines to true and pass ReactNode as children instead of string

@meetbryce
Copy link

Yup, I'm getting the exact same error

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

4 participants