angular-ui/ui-grid

Edited cell will always refocus when scrolling grid

已关闭

#6,794 创建于 2018年7月5日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (2,496 个派生)batch import
grid-edithelp wantedwaiting-response

仓库指标

星标
 (5,395 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

I am using version 4.4.4 and things messed up with the scrolling. The edited cell will always refocus when scrolling grid horizontally. I tried to fix the issue by commenting "uiGridCtrl.cellNav.broadcastCellNav(lastRowCol);" but it lead to tab/edit issue. Please let us know if we have any fix for the same.

grid.api.core.on.scrollEnd($scope, function (args) { // Skip if there's no currently-focused cell var lastRowCol = uiGridCtrl.grid.api.cellNav.getFocusedCell(); if (lastRowCol === null) { return; }

            //if not in my container, move on
            //todo: worry about horiz scroll
            if (!renderContainerCtrl.colContainer.containsColumn(lastRowCol.col)) {
              return;
            }

          //uiGridCtrl.cellNav.broadcastCellNav(lastRowCol); // -- Commented this line**
          });

贡献者指南