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 property 'tagName' of null - when editable true #3478

Closed
Benny739 opened this issue Jul 21, 2017 · 3 comments
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Benny739
Copy link

Benny739 commented Jul 21, 2017

There's an error in Datatable, when editable=true and you mark more than one column with the mouse.
Cannot read property 'tagName' of null
DataTable.prototype.findCell = function (element) { var cell = element; while (cell.tagName != 'TD') { cell = cell.parentElement; } return cell; };

Error is also in the examples present: https://www.primefaces.org/primeng/#/datatable/editable

ashampoo_snap_2017 07 21_13h58m26s_013_

@jampueroc
Copy link

I have the same problem

The line 1422 in datatable.js , should by:
while (cell && cell.tagName != 'TD')

@JimmySpicy
Copy link

Hello, I am facing the same issue.

cannot_read_property_tagname_of_null

@jampueroc Thanks for sharing your solution, I will test.

@cagataycivici cagataycivici self-assigned this Aug 8, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 8, 2017
@cagataycivici cagataycivici added this to the 4.1.3 milestone Aug 8, 2017
@cagataycivici
Copy link
Member

Somehow I can't replicate but added checks anyway.

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

4 participants