-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
add guard checks for value and editor in <Slate /> #3326
add guard checks for value and editor in <Slate /> #3326
Conversation
Unfortunately, there are no tests setup for Also the linter doesn't like my |
Hey @rockettomatooo can you use the Also I think those lines should be moved inside the |
Hi @ianstormtaylor I now added the |
(FYI I resolved the merge conflict in package.json) |
🦋 Changeset detectedLatest commit: 104e1f3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Thanks @rockettomatooo! Sorry for the delay. |
Is this adding or improving a feature or fixing a bug?
Bug
What's the new behavior?
An error message is displayed when the user passes faulty values to

<Slate />
:(I passed
null
as value)How does this change work?
value
andeditor
props passed to<Slate />
are checked withNode.isNodeList()
andEditor.isEditor()
.Have you checked that...?
yarn test
.yarn lint
. (Fix errors withyarn fix
.)yarn start
.)Does this fix any issues or need any specific reviewers?
--