Buttons extension disable with html attribute
Buttons extension disable with html attribute

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
This discussion has been closed.
Answers
Agreed - thank you for pointing this out. We will include this for the next release.
Allan
Just to say that this is now in the repo and will be in the next release later this week.
Regards,
Allan