I have been trying to implement infinite scroll on DropDownList component, using virtualization, because it's the only way to track scrolling. When I reach the end, of the DropDownList's items, I make a request to the server, and load new chunk of data, and add this new data to existed. In my case, the property virtual.total is based on the items length. But when I get new items, the length of the items increases, and accordingly virtual.total changes, that leads to resetting position of the scroll bar to the top of the popup.
I have already found the place in the source code, where is it going, and I have found the only one way to fix this problem so far. It's changing componentDidUpdate method of the DropDownList.prototype directly, but it is very bad practice..
Are there ways to implement these changes in other way?