Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable: Cannot read properties of null when editMode="cell" and selectionMode="single" #5100

Closed
lakkvak opened this issue Jan 17, 2024 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@lakkvak
Copy link

lakkvak commented Jan 17, 2024

Describe the bug

If the table has a props selectionMode="single", editMode="cell"
And in the column body template we have a div, not a pure value. image

there will be an error in the console when clicking on a cell
chunk-LI252WGL.js?v=e3bda5c5:1700 Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
image

Reproducer

https://stackblitz.com/edit/aghk4e?file=src%2FApp.vue

PrimeVue version

3.45.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@lakkvak lakkvak added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 17, 2024
@mertsincan
Copy link
Member

Thanks a lot for your report! I'll fix it asap.

@mertsincan mertsincan self-assigned this Jan 18, 2024
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 18, 2024
@mertsincan mertsincan added this to the 3.47.0 milestone Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants