Skip to content

scrollToColumn doesn't reject/resolve correctly #4853

@schlundus

Description

@schlundus

Describe the bug
table.scrollToColumn doesn't reject/resolve correctly. then and catch aren't called.
table.scrollToRow works as intended

Tabulator Info
6.3

To Reproduce
Save any Table Instance in global var T (i did it with examples 6.3 Virtual Dom Vertical, with example_table_virtual)
After completion issue the following in console

T.scrollToColumn("name", "middle", false)
.then(function(){
    console.log('then');
})
.catch(function(error){
    console.log('catch');
});


T.scrollToColumn("nxame", "middle", false)
.then(function(){
    console.log('then');
})
.catch(function(error){
    console.log('catch');
});

which yields no then, no catch and a Pending Promise

Image

compare it to

T.scrollToRow(23, "middle", false)
.then(function(){
    console.log('then');
})
.catch(function(error){
    console.log('catch');
});

T.scrollToRow(1223, "middle", false)
.then(function(){
    console.log('then');
})
.catch(function(error){
    console.log('catch');
});

which yields a then, a catch and a fulfilled Promise

Image

Expected behavior
scrollToColumn should behave as scrollToRow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Possible BugA possible bug that needs investigation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions