mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #5100 - DataTable: Cannot read properties of null when editMode="cell" and selectionMode="single"
This commit is contained in:
parent
f4c9f439a3
commit
ee83f7d756
1 changed files with 2 additions and 2 deletions
|
@ -794,9 +794,9 @@ export default {
|
||||||
this.rowTouched = false;
|
this.rowTouched = false;
|
||||||
|
|
||||||
if (focusedItem) {
|
if (focusedItem) {
|
||||||
if (e.originalEvent.target.getAttribute('data-pc-section') === 'rowtogglericon' || e.originalEvent.target.parentElement.getAttribute('data-pc-section') === 'rowtogglericon') return;
|
if (event.target?.getAttribute('data-pc-section') === 'rowtogglericon' || event.target?.parentElement?.getAttribute('data-pc-section') === 'rowtogglericon') return;
|
||||||
|
|
||||||
const targetRow = e.originalEvent.target.closest('tr[data-p-selectable-row="true"]');
|
const targetRow = event.target?.closest('tr[data-p-selectable-row="true"]');
|
||||||
|
|
||||||
focusedItem.tabIndex = '-1';
|
focusedItem.tabIndex = '-1';
|
||||||
targetRow.tabIndex = '0';
|
targetRow.tabIndex = '0';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue