Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Row wise tabindex lost focus after few continuous tabs

I have an ui-grid with just 1 column and about 1000 rows. Each row have a textbox in it. I want to navigate through textbox by tab. This works fine about 10 - 15 rows, after that the textbox is losing its focus, then if you press tab again, it will skip next few rows and jump to a further textbox.

See the issue plnkr here

UI-Grid options:

$scope.gridOptions = {
    rowHeight: '200',
    enableColumnMenus: false,
    paginationPageSize: 2000,
    columnDefs: [
      {name:"value", width:'*',
        cellTemplate: gridTemplate,
      }
    ],
    data: gridData
};
like image 737
Amir Suhail Avatar asked Oct 03 '17 14:10

Amir Suhail


1 Answers

Whatever @Maxim mentioned is absolutely true. To get rid of this issue, what you can do as workaround is set virtualThreshold = 50 and than use pagination, so that focused is not lost.

like image 182
Nitin Ayir Avatar answered Sep 18 '22 16:09

Nitin Ayir