From 4934e0e1468f4b3e6698ea8fa537c820b5f1d0b7 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 27 Oct 2023 17:52:34 +0300 Subject: [PATCH] Fixed #4498 - Datatable: Cannot set properties of null (setting 'tabIndex') --- components/lib/datatable/DataTable.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index 931878a38..ab3f4908b 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -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';