Opened 8 years ago

Closed 7 years ago

#13984 closed defect (patchwelcome)

Bug with focus at DataGrid

Reported by: iseeyou Owned by: Evan
Priority: high Milestone: tbd
Component: DojoX Grid Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

I have DataGrid? and ToolTipDialog?, for setup visibility of columns, on my page. So, when i click to DataGrid?, header was get focus, and when i open dropdown menu with my ToolTipDialog? and changing visibility of column (checkbox), then tooltip was closed. I found with debugger, that when header has focus, focus always changing to grid.domNode in function _delayedHeaderFocus, becouse even if focus was removed from DataGrid?, header of grid stay focused. This condition checked in function isNavHeader. So, i changed isNavHeader to (i added checking to if current focused node is descendant of grid.domNode)

isNavHeader: function(){ 
                // summary: 
                //	states whether currently navigating among column headers. 
                // returns: 
                //	true if focus is on a column header; false otherwise. 
                return (!!this._colHeadNode && (!dijit._curFocus || dojo.isDescendant(dijit._curFocus,this.grid.domNode))); 
        },

Change History (2)

comment:1 Changed 7 years ago by bill

DojoX Grid and EnhancedGrid are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

comment:2 Changed 7 years ago by bill

Resolution: patchwelcome
Status: newclosed
Note: See TracTickets for help on using tickets.