Bootstrap 5 collection editor edit disabled

Bootstrap 5 collection editor edit disabled

foxy_stoatfoxy_stoat Posts: 23Questions: 8Answers: 0

Link to test case: https://live.datatables.net/gepalawi/1/
Error messages shown: none
Description of problem:
hi
minor issue, i hope the test case is setup properly, this is linked to editor
when using a button collection for the editor functionality the edit button is functioning but visually it is not "disabled" when no row is selected.
example also shows an inline edit button which works fine (using 'btn' class) but the drop downs use the 'dt-button' and visually appear the same (new - edit) regardless of selection.

i think its related to

<li class="dt-button buttons-selected buttons-edit disabled" aria-controls="example">
<a href="#" tabindex="0" class="dropdown-item">Edit</a></li>

the disabled class is being set on the <li> and possibly should be on the <a>
ref:https://getbootstrap.com/docs/5.3/components/dropdowns/#disabled

thanks in advance for any help
pete

Answers

  • allanallan Posts: 65,248Questions: 1Answers: 10,814 Site admin

    Hi Pete,

    Many thanks for this and the test case. It does indeed look wrong. Let me get back to you on this.

    Allan

Sign In or Register to comment.