Trimming whitespace in comma-separated filter defaults fixes a search bug
A developer traced a search-filter bug where a multi-select default such as 'Active, Pending' was split on commas but kept the leading space, so the second value never matched any rows. The stray space was invisible in the filter chips, which made the problem hard to report. A one-line trim in the parser fixed the filter and a regression test covers it. A later review found that a separate change-detection check had been relying on the same bug, so trimming the parser made untouched forms look modified. That caused the grid to load data on page open even when automatic search was disabled.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in