Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protect against reading removeEventListener from el if null (#4213)
* protect against reading removeEventListener from el if null * Added changeset Co-authored-by: Eythor Gisli Thorsteinsson <eythort@menandmice.com> Co-authored-by: Jed Watson <jed.watson@me.com> Co-authored-by: Nathan Bierema <nbierema@gmail.com>
- Loading branch information
1 parent
a0133f1
commit d1e660c
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"react-select": patch | ||
--- | ||
|
||
Added a guard to the `ScrollCaptor` component to check that `el` exists before calling `removeEventListener`, fixes intermittent errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters