Commit 5fb1b4e
fix: check null ref before removeEventListener (#176)
* fix: check null ref before removeEventListener
Fixes error "Cannot read property removeEventListener of null"
Related issues:
#163
ant-design/ant-design#34816
* Update src/ScrollBar.tsx
* Update src/ScrollBar.tsx
Co-authored-by: afc163 <afc163@gmail.com>1 parent 00915b4 commit 5fb1b4e
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
0 commit comments