angular-ui/ui-grid

editableCellTemplate and enableCellEditOnFocus not working together

Open

#4,286 建立於 2015年8月28日

在 GitHub 查看
 (5 留言) (3 反應) (0 負責人)JavaScript (5,395 star) (2,496 fork)batch import
grid-edithelp wanted

描述

So we have an issue where we need to use an editableCellTemplate and need enableCellEditOnFocus together. However it seems that they are not working together correctly. The Next row receives focus but the caret/cursor isn't there. CellNav and edit are both enabled and it works on 'non-templated' cells. Is there something I can add to the template to allow it to edit on focus?

Cell Template (new to commenting on github had to get rid of the </>): editableCellTemplate: input id="editBtn" type="string" ng-model="MODEL_COL_FIELD" ng-enter="grid.appScope.edit(row)"

Edit: the edit on focus also works if I add ui-grid-editor to the template options but prevents the ng-enter event from firing.

貢獻者指南