qlik-oss / sn-table

table supernova for nebula.js
https://qlik.dev/libraries-and-tools/visualizations/table
MIT License
6 stars 14 forks source link

chore: fix tab stop when keyboard navigation is off #1110

Closed a-m-dev closed 10 months ago

a-m-dev commented 10 months ago

when keyboard navigation is off, AND there is no totals row, the first body cell picks up tab a tab index of 0, which results in below scenario:

Kapture 2023-12-14 at 09 27 27

So this PR fixes that base on the rule for tab stops with new head cell (we might have only 1 tab stop in table), So if the flag is on -> we should directly return -1 for first body cell, where we decide to let it have tab stop or not.

the result becomes:

https://github.com/qlik-oss/sn-table/assets/29652890/5bcfccf0-8446-4c92-b7ca-26b0b82635a8