Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Fixes incorrect docs, see #1497 #1837

Closed

Conversation

mattgreenfield
Copy link
Contributor

@mattgreenfield mattgreenfield commented Aug 15, 2018

Summary

Updates the docs to fix #1497. The current suggested method results in an Element type is invalid: error.

I can confirm that using the component itself rather than its name as a string works as expected.

Credit goes to @albertlockett

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@mattgreenfield
Copy link
Contributor Author

@facebook-github-bot - I've now signed the CLA

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@albertlockett
Copy link

albertlockett commented Aug 15, 2018

Thanks for the shoutout @mattgreenfield! Also thanks for fixing it

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

niveditc is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@niveditc niveditc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thank you for fixing this :)

@mattgreenfield mattgreenfield deleted the patch-1 branch September 10, 2018 17:03
jdecked pushed a commit to twitter-forks/draft-js that referenced this pull request Oct 9, 2019
Summary:
**Summary**

Updates the docs to fix facebookarchive#1497. The current suggested method results in an `Element type is invalid:` error.

I can confirm that using the component itself rather than its name as a string works as expected.

Credit goes to albertlockett
Pull Request resolved: facebookarchive#1837

Differential Revision: D9734736

fbshipit-source-id: 91aee43c504a3d5eda1bc74548f806faae4bc35d
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
**Summary**

Updates the docs to fix #1497. The current suggested method results in an `Element type is invalid:` error.

I can confirm that using the component itself rather than its name as a string works as expected.

Credit goes to albertlockett
Pull Request resolved: facebookarchive/draft-js#1837

Differential Revision: D9734736

fbshipit-source-id: 91aee43c504a3d5eda1bc74548f806faae4bc35d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Element Type Invalid Error rendering Custom block type
4 participants