Skip to content

b-table: context parameter is not up to date when using asynchronous item provider  #1904

Closed
@stalinone

Description

@stalinone

Reproducible fiddle: https://jsfiddle.net/kor98cgL/
Version: 2.0.0-rc.11
Browser: both Chrome 67 and Firefox 60 (macOS 10.13.5)

When the "reset" button is clicked, the context parameter is supposed to be ctx.sortBy === 'first'; however as the fiddle shown, it is 'last'.

The presented fiddle is using async function, but the bug is persisted if provider explicitly return a promise. However, it seems normal when using synchronous provider function.

I guess this might caused by the table busy event is triggered before sortBy update event and thus blocked the provider update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions