angular-ui/ui-grid

Edited cell will always refocus when scrolling grid

Open

#6.794 geöffnet am 5. Juli 2018

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
grid-edithelp wantedwaiting-response

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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**
          });

Contributor Guide