Please use the simple form below as a guideline for describing your pull request, and delete these instructions.
Thanks for contributing to Draft.js!
Summary
An issue occurs while using the toolbar inline plugin, an error is thrown in the method getVisibleSelectionRect because the value of the selection is null.
The fix is to use ?. on the existing if test of selection.rangeCount to avoid this error.
Before submitting a pull request, please make sure the following is done...
master
.npm test
)npm run lint
) and passes Flow (npm run flow
)Please use the simple form below as a guideline for describing your pull request, and delete these instructions.
Thanks for contributing to Draft.js!
Summary
An issue occurs while using the toolbar inline plugin, an error is thrown in the method
getVisibleSelectionRect
because the value of the selection isnull
. The fix is to use?.
on the existingif test
ofselection.rangeCount
to avoid this error.