Skip to content
This repository was archived by the owner on Jul 4, 2021. It is now read-only.
This repository was archived by the owner on Jul 4, 2021. It is now read-only.

Add items in the page > first page, the state shows wrong totalPages #342

@nttdocomo

Description

@nttdocomo
var pageCol = new PageableCollection([],{
        mode:'client',
        state: {
            pageSize:5
        }
    }),
    array = []
    for (var i = 7 - 1; i >= 0; i--) {
        array.push({
            'name':i,
            'phone':'15210492508',
            'amount':i,
            'comment':'cccccccccccccc'
        })
    }
    pageCol.add(array)
    pageCol.getNextPage()
    pageCol.add(array)
    console.log(pageCol.state)

At last, the log will show the state's totalPages is 3, but expect is 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions