mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4498 - Datatable: Cannot set properties of null (setting 'tabIndex')
This commit is contained in:
parent
c8e065e73a
commit
4934e0e146
1 changed files with 2 additions and 0 deletions
|
@ -787,6 +787,8 @@ export default {
|
|||
this.rowTouched = false;
|
||||
|
||||
if (focusedItem) {
|
||||
if (e.originalEvent.target.getAttribute('data-pc-section') === 'rowtogglericon' || e.originalEvent.target.parentElement.getAttribute('data-pc-section') === 'rowtogglericon') return;
|
||||
|
||||
const targetRow = e.originalEvent.target.closest('tr[data-p-selectable-row="true"]');
|
||||
|
||||
focusedItem.tabIndex = '-1';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue