Skip to content

Error on removeSelection when no blocks exist#118

Open
jackbanditdude wants to merge 2 commits intoalyssaxuu:masterfrom
jackbanditdude:master
Open

Error on removeSelection when no blocks exist#118
jackbanditdude wants to merge 2 commits intoalyssaxuu:masterfrom
jackbanditdude:master

Conversation

@jackbanditdude
Copy link

Add a null check in removeSelection when parentNode evaluates to null

Add a null check in removeSelection when parentNode evaluates to null
In firstBlock(), the blockSnap() function call ignores the return type, unlike other places we use blockSnap(). Adding in false check and removeSelection() call.
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

Successfully merging this pull request may close these issues.

1 participant