mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 22:21:20 +02:00
Check if getBoundingClientRect exist before trying to call bind (#5226)
* Stop trying to call bind on undifined when getBoundingClientRect is not defined. This is happening when testing slate with react testing library * Add changeset
This commit is contained in:
committed by
GitHub
parent
224b7ebba3
commit
0141f68365
5
.changeset/curly-news-cover.md
Normal file
5
.changeset/curly-news-cover.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'slate-react': minor
|
||||
---
|
||||
|
||||
Check if getBoundingClientRect exist before trying to call bind on it. Makes unit testing experience agains Editable nicer
|
Reference in New Issue
Block a user