Skip to content

Commit

Permalink
03245f43bc4e47338edc27cb0391a61150fb5265 Fix: Don't set `aria-disable…
Browse files Browse the repository at this point in the history
…d` on the ellipsis element for the pagination control

DataTables/DataTablesSrc#309

Sync to source repo @03245f43bc4e47338edc27cb0391a61150fb5265
  • Loading branch information
dtbuild committed Dec 11, 2024
1 parent 5c45bda commit 4e06e81
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.1.8",
"last-sync": "0da1617b05ebab0e1a313f7964a20f8299bbdda7"
"last-sync": "03245f43bc4e47338edc27cb0391a61150fb5265"
}
3 changes: 1 addition & 2 deletions js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -13343,7 +13343,7 @@
'data-dt-idx': button,
'tabIndex': btnInfo.disabled
? -1
: settings.iTabIndex
: settings.iTabIndex && btn.clicker[0].nodeName.toLowerCase() !== 'span'
? settings.iTabIndex
: null, // `0` doesn't need a tabIndex since it is the default
});
Expand Down Expand Up @@ -13410,7 +13410,6 @@
switch ( button ) {
case 'ellipsis':
o.display = '…';
o.disabled = true;
break;

case 'first':
Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13290,7 +13290,7 @@ function _pagingDraw(settings, host, opts) {
'data-dt-idx': button,
'tabIndex': btnInfo.disabled
? -1
: settings.iTabIndex
: settings.iTabIndex && btn.clicker[0].nodeName.toLowerCase() !== 'span'
? settings.iTabIndex
: null, // `0` doesn't need a tabIndex since it is the default
});
Expand Down Expand Up @@ -13357,7 +13357,6 @@ function _pagingButtonInfo(settings, button, page, pages) {
switch ( button ) {
case 'ellipsis':
o.display = '…';
o.disabled = true;
break;

case 'first':
Expand Down

0 comments on commit 4e06e81

Please sign in to comment.