Skip to content

Commit 67dd17d

Browse files
n5leontangbc
authored andcommitted
Fixed incorrect length of real DOM items for item mode
1 parent fabcd13 commit 67dd17d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,10 @@
445445
// item-mode shoud judge from items prop.
446446
if (this.item) {
447447
delta.total = this.itemcount
448+
if (delta.keeps > delta.total) {
449+
delta.keeps = delta.total
450+
delta.end = delta.total - 1
451+
}
448452
} else {
449453
if (!slots.length) {
450454
delta.start = 0

0 commit comments

Comments
 (0)