Griddle icon indicating copy to clipboard operation
Griddle copied to clipboard

Inconsistent results with filter control

Open ryexley opened this issue 11 years ago • 10 comments

My team noticed an issue today with the filtering functionality of this component. The best way I could think of to communicate the issues was with a series of screenshots. See below.

Here is the default state of the grid with no filter applied. Note that company with the name "Acuity Insurance" in the list:

default-state

When I enter the first two characters of the company name into the filter, "Acuity Insurance" is still in the list of results in the grid:

two-character-filter

Now, when I enter a third charter, which, note, is still part of the company name "Acuity Insurance", I see no results at all in the grid (note that it actually does appear that there is a row in the grid...but there is no content visible in it...part of the problem?):

third-character

If I enter the entire first word of the company name, "acuity" and add a question mark to the end of the word...I still have no results, but I now actually get the "no data" message in place of the grid:

full-word-with-question-mark

Then if I hit backspace, and remove the question mark, I actually now see the result I expect:

backspace-remove-question-mark

Anyone else seen this? Is there a solution or workaround for fixing this? Would love to see consistent results with the filter control.

ryexley avatar Apr 03 '15 20:04 ryexley

Hey there! Sorry you're encountering issues like this. Screen shots are a perfect way to convey this information. Are you using infinite scrolling and is this a local data set or is it calling out to a server to get results?

We'll try to get this sorted out. :+1:

ryanlanciaux avatar Apr 04 '15 04:04 ryanlanciaux

I am using infinite scrolling, yes...and the data is local. I am making a server call to get the results, but...prior to rendering the grid, so, its all local.

ryexley avatar Apr 06 '15 16:04 ryexley

Would you be able to get us some sample data to reproduce the results you're seeing?

blkmutt avatar Apr 06 '15 17:04 blkmutt

The results that the above screenshots are based on is just some mock data that is getting generated...so the issues really apply to just about any data...here's a sample collection of mock data that got generated today...hopefully this helps.

https://gist.github.com/ryexley/ef7ac617ba01ebef3276

ryexley avatar Apr 06 '15 17:04 ryexley

Thanks for posting the information. Sorry to keep bugging you for more info but could you please create a project that I can pull down to demonstrate this or something along those lines (jsfiddle or would be great too)? I'm not able to reproduce the issue and I'd really like for this to be working for you.

ryanlanciaux avatar Apr 07 '15 04:04 ryanlanciaux

Hey @ryexley -- I'm going to close this one for now. Please let me know if you're still encountering problems and we can open it back up.

ryanlanciaux avatar Apr 25 '15 20:04 ryanlanciaux

I am still experiencing it, but I've not had the capacity to put together a full sample project to reproduce the issue. I provided a collection of sample data, but not a full solution. On Sat, Apr 25, 2015 at 4:12 PM Ryan Lanciaux [email protected] wrote:

Hey @ryexley https://github.com/ryexley -- I'm going to close this one for now. Please let me know if you're still encountering problems and we can open it back up.

— Reply to this email directly or view it on GitHub https://github.com/GriddleGriddle/Griddle/issues/123#issuecomment-96272771 .

ryexley avatar Apr 25 '15 21:04 ryexley

Thanks for sending the mock data. I was not able to reproduce the issue with the mock data.

ryanlanciaux avatar Apr 25 '15 21:04 ryanlanciaux

@ryexley are you using a custom component to render the column? the sorting/filtering only works on the raw data you pass in, not the data that is rendered.

pherris avatar May 12 '15 15:05 pherris

@pherris not for the Company column, no...for the other column, yes, I'm using a custom component for it...but not Company.

ryexley avatar May 12 '15 17:05 ryexley