[x] Checked that there is not already a package that provides the described functionality
Description
When the first cell in a row is a header (i.e using the firstCellIsHeader option in the govukTable Nunjucks macro), the
index fetched for the column is incorrect (e.g clicking on the second column sorts the third column).
Prerequisites
Description
When the first cell in a row is a header (i.e using the
firstCellIsHeader
option in thegovukTable
Nunjucks macro), the index fetched for the column is incorrect (e.g clicking on the second column sorts the third column).Steps to Reproduce
Create a table with a row header:
Click on a header
Expected behaviour: [What you expect to happen]
The column I click on is the column that gets sorted
Actual behaviour: [What happens]
The next column along gets sorted:
Reproduces how often: [What percentage of the time does it reproduce?]
Every time
Versions
MOJ Frontend Version: 1.6.0
Browser: Firefox (Also reproducible in Chrome and Safari)
Additional Information
I have a fix incoming in a PR