tabindex attribute of header CONTENTS is replicated into shadow header

tabindex attribute of header CONTENTS is replicated into shadow header

armahilloarmahillo Posts: 1Questions: 1Answers: 0

This issue is related to the previously fixed:

https://datatables.net/forums/discussion/14382/tabindex-declared-on-hidden-header-cells

Previously, the issue raised in that post was that the tabindex of the cells themselves was being replicated on the shadow THEAD, and the patch addresses that. I am using 1.10 and I do indeed see that fix, and it works.

However -- I have a checkbox inside one of the THEAD > TH cells that has a tabindex (it's a "select all in this column" thingy). Since the cells are being cloned directly, even though the tabindex is removed from the TH cell itself, it's not being removed from the contents -- so this behavior is still occurring.

Would it be possible to have the patch you implemented in the previous post expanded to also include children elements of the replicated THEAD cells?

Answers

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    I'm not sure it is as simple as checking for tabindex on the children - form elements don't need a tabindex defined to be focusable. Possibly tabindex=0 might work - I'm not immediately sure!

    Are you able to link to a page showing the issue?

    Thanks,
    Allan

This discussion has been closed.