bhd-components 0.11.16 → 0.11.17
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/dist/index.esm.es5.development.js +8 -8
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +1 -1
- package/dist/vendor.esm.es5.production.js +1 -1
- package/es2017/AIMessageList/components/virtuosoList/index.js +8 -8
- package/esm/AIMessageList/components/virtuosoList/index.js +8 -8
- package/package.json +1 -1
|
@@ -275,14 +275,14 @@ const VirtuosoList = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
275
275
|
const scrollToBottom = ()=>{
|
|
276
276
|
if (!virtuosoRef.current) return;
|
|
277
277
|
if (isAutoScrollRef.current && !userScrolledUpRef.current) {
|
|
278
|
-
timerRef.current.scrollTimer = setTimeout(()=>{
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
278
|
+
// timerRef.current.scrollTimer = setTimeout(() => {
|
|
279
|
+
virtuosoRef.current.scrollToIndex({
|
|
280
|
+
index: "LAST",
|
|
281
|
+
align: "end",
|
|
282
|
+
behavior: "auto",
|
|
283
|
+
offset: scrollOffset
|
|
284
|
+
});
|
|
285
|
+
// }, 100);
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
const getData = (page, pageSize)=>{
|
|
@@ -280,14 +280,14 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
280
280
|
var scrollToBottom = function() {
|
|
281
281
|
if (!virtuosoRef.current) return;
|
|
282
282
|
if (isAutoScrollRef.current && !userScrolledUpRef.current) {
|
|
283
|
-
timerRef.current.scrollTimer = setTimeout(
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
283
|
+
// timerRef.current.scrollTimer = setTimeout(() => {
|
|
284
|
+
virtuosoRef.current.scrollToIndex({
|
|
285
|
+
index: "LAST",
|
|
286
|
+
align: "end",
|
|
287
|
+
behavior: "auto",
|
|
288
|
+
offset: scrollOffset
|
|
289
|
+
});
|
|
290
|
+
// }, 100);
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
293
|
var getData = function(page, pageSize) {
|