-
Notifications
You must be signed in to change notification settings - Fork 113
Commit f3f92c7
* Fix onLoad overwrite and call onLoad
- Fix onLoad getting overwritten by props which cause `onImageLoad()` to never get called.
- preserve the functionality of `onLoad` by adding a callback.
* Attach event to afterLoad and update docs
* Update src/components/LazyLoadImage.jsx
Co-authored-by: Albert Juhé Lluveras <aljullu@gmail.com>
* Mark afterLoad as deprecated
* Update test
---------
Co-authored-by: Albert Juhé Lluveras <aljullu@gmail.com>
1 parent febeb78 commit f3f92c7
File tree
3 files changed
+18
-9
lines changed- src/components
3 files changed
+18
-9
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | - | ||
27 | + | ||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 | - | ||
69 | + | ||
70 | + | ||
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
| |||
188 | 189 |
| |
189 | 190 |
| |
190 | 191 |
| |
191 | - | ||
192 | + | ||
193 | + | ||
192 | 194 |
| |
193 | 195 |
| |
194 | 196 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | - | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
21 | 24 |
| |
22 | 25 |
| |
23 | 26 |
| |
| |||
44 | 47 |
| |
45 | 48 |
| |
46 | 49 |
| |
47 | - | ||
50 | + | ||
48 | 51 |
| |
49 | 52 |
| |
50 | 53 |
| |
| |||
146 | 149 |
| |
147 | 150 |
| |
148 | 151 |
| |
149 | - | ||
152 | + | ||
153 | + | ||
150 | 154 |
| |
151 | 155 |
| |
152 | 156 |
| |
| |||
160 | 164 |
| |
161 | 165 |
| |
162 | 166 |
| |
163 | - | ||
167 | + | ||
168 | + | ||
164 | 169 |
| |
165 | 170 |
| |
166 | 171 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 | - | ||
70 | + | ||
71 | 71 |
| |
72 | - | ||
72 | + | ||
73 | + | ||
73 | 74 |
| |
74 | 75 |
| |
75 | 76 |
| |
| |||
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
84 | + | ||
83 | 85 |
| |
84 | 86 |
| |
85 | 87 |
| |
|
0 commit comments