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

Warning Invalid prop children of type object supplied to TruncateMarkup for IE 11 #36

Open
Iarkovenko opened this issue Jan 16, 2020 · 0 comments

Comments

@Iarkovenko
Copy link

Iarkovenko commented Jan 16, 2020

Warning: Failed prop type: Invalid prop children of type object supplied to TruncateMarkup, expected a single ReactElement.

My Code

const Title = ({ style, line, text }) => (
  <TruncateMarkup lines={line} tokenize={'words'}>
    <div>
      <div style={style} >      
        {text}
      </div>
    </div>
  </TruncateMarkup>
);

and

const Location = ({ style, line, text }) => (
 <TruncateMarkup lines={2} tokenize={'words'}><div><span>{`Location ${location}`}</span></div></TruncateMarkup>
);

I see this warning message as above in console IE11. TruncateMarkup still works correctly for IE , but let me know please if it's can take a negative effect on my text in IE11
tiles-by-social-edge-events-0.0.1-10e1fa-dev.zip
?

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

1 participant