react-ui-basics 0.0.224 → 0.0.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FilteredList.js +4 -2
- package/FilteredList.js.map +1 -1
- package/bundle.css +630 -629
- package/package.json +1 -1
- package/src/FilteredList.tsx +5 -2
package/package.json
CHANGED
package/src/FilteredList.tsx
CHANGED
|
@@ -167,8 +167,11 @@ class FilteredList<T extends string|number> extends PureComponent<FilteredListPr
|
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
updateScroll = (id) => {
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
const child = this.elements[id];
|
|
171
|
+
if (!child)
|
|
172
|
+
return
|
|
173
|
+
|
|
174
|
+
const container = this.el;
|
|
172
175
|
const scrollTop = container.getScroll();
|
|
173
176
|
const height = container.getHeight();
|
|
174
177
|
let isVisible = scrollTop <= child.offsetTop && scrollTop + height >= child.offsetTop + child.clientHeight;
|