-
Notifications
You must be signed in to change notification settings - Fork 886
scrollToColumn doesn't reject/resolve correctly #4853
Copy link
Copy link
Open
Labels
Possible BugA possible bug that needs investigationA possible bug that needs investigation
Description
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
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
Expected behavior
scrollToColumn should behave as scrollToRow
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Possible BugA possible bug that needs investigationA possible bug that needs investigation