Buttons extension disable with html attribute

Buttons extension disable with html attribute

DataTableFanDataTableFan Posts: 14Questions: 7Answers: 0

Hi, the buttons extension disables the buttons only by the class "disabled". Therefore, the default behavior like focusing, tabbing, clicking, ... remains.

button().disable() or button().enable(false) should also set the html disabled attribute like:

<button class="dt-button disabled" tabindex="0" aria-controls="example" type="button" disabled></button>

Also the tabindex could be updated (remove it or set it to -1).

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin
    Answer ✓

    Agreed - thank you for pointing this out. We will include this for the next release.

    Allan

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    Just to say that this is now in the repo and will be in the next release later this week.

    Regards,
    Allan

This discussion has been closed.