ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

When clearing filter with "x" key, event filterChanged fires but not rowsVisibleChanged

Open valepu opened this issue 11 years ago • 3 comments

see this plunkr: http://plnkr.co/edit/NPazbil7fCU39SgHviDf?p=preview

To test it:

  1. Open the javascript console while on the page
  2. Clear the "Company Name" filter by clicking on the x next to it Result: on the console you will see "Event fired: filterChanged" but not "Event fired: rowsVisibleChanged"

valepu avatar Jul 01 '15 11:07 valepu

+1

jjcad avatar Sep 07 '16 14:09 jjcad

I did notice that clearing filters in either the column header or using "Clear All Filters" in the menu does kick off the 'rowsRendered' event.

It seems like the issue might be with Grid.prototype.setVisibleRows, which only raises a 'rowsRendered' event. Since it's responsible for setting the visible rows, it seems sensible that it should also let everybody know that the visible rows changed instead of only letting everybody know that the rows are rendered.

jjcad avatar Sep 07 '16 15:09 jjcad

applied PR to fix this v3.2.10

dlgski avatar Sep 20 '16 18:09 dlgski