Today, I noticed that when I have a bunch of columns and I’m enabling filtering option of ui-grid (v3.0.7), the gridMenu itself scrolls to top while clicking on an individual option in the menu. Please find plunker below:
He suggested that in function itemAction below code is responsible:
/* * XXX: Fix after column refactor * Ideally the focus would remain on the item. * However, since there are two menu items that have their 'show' property toggled instead. This is a quick fix. */ gridUtil.focus.bySelector(angular.element(gridUtil.closestElm($elm, ".ui-grid-menu-items")), 'button[type=button]', true);
Please comment above line in you ui-grid.js and add below one to fix the scrolling issue.
I’m using @ChrisWiGit’s fix and it works perfectly. Once again please note that I have tested this on ui-grid v3.0.7. Hopefully this will be merged into future releases. Thank you very much !!!!