Opened 9 years ago
Closed 8 years ago
#14705 closed defect (patchwelcome)
e.cellNode is incorrect in onCellClick() / onRowClick() when cell editor is open
Reported by: | Roberto Olivares | Owned by: | Evan |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | DojoX Grid | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
This occurs on Chrome / Firefox / possibly others.
Create a data grid with 2+ rows and 2+ columns. Make one column editable.
Add this code or see the attached HTML file:
dojo.connect(grid, "onCellClick", grid, function(e) {
var r = e.cellNode.getBoundingClientRect(); console.log(r.top + ", " + r.left);
});
Click on the grid cells. Notice the top, left values printed to the console are correct.
Now, edit one of the editable cells. While the cell editor is still open, click onto a non-editable cell in the same row. Notice the top, left values are incorrect: 0,0. It appears the e.cellNode provided in this case is not the "real" DOM node for the cell.
If we are trying to popup a dijit.tooltipdialog at the given cell node in this case, it appears in the wrong place. Any code that expects the actual cell DOM node will get something else in this case.
Attachments (1)
Change History (4)
Changed 9 years ago by
comment:1 Changed 9 years ago by
A workaround in the meantime would be very helpful. I just need the correct DOM node for the cell since e.cellNode can't be trusted.
comment:2 Changed 8 years ago by
comment:3 Changed 8 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
e.cellNode fails in this simple HTML example