PDA

View Full Version : Bug in focusing cell after editing



zerkms
2 May 2012, 3:40 PM
Steps to reproduce: http://192.168.1.110/ext-4.1/examples/grid/cell-editing.html

1 (http://192.168.1.110/ext-4.1/examples/grid/cell-editing.html). Click on any editable cell
2. Press enter after - the focus is on place
3. Click again, modify the value
4. Press enter - the focus is lost

Correspondent code in CellEditing.js:


// Only update the record if the new value is different than the
// startValue. When the view refreshes its el will gain focus
if (!record.isEqual(value, startValue)) {
record.set(activeColumn.dataIndex, value);
// Restore focus back to the view's element.
} else {
grid.getView().getEl(activeColumn).focus();
}


Seems like it doesn't gain the focus after setting new value

scottmartin
3 May 2012, 7:42 AM
This is a confirmed bug: EXTJSIV-6025

It is scheduled to be released in upcoming release, but there is not date at this time.

Regards,
Scott.