Skip to content

fix(services): reset expanded row state when searching#397

Open
decofe wants to merge 2 commits intomainfrom
alexey/fix-search-expanded-state
Open

fix(services): reset expanded row state when searching#397
decofe wants to merge 2 commits intomainfrom
alexey/fix-search-expanded-state

Conversation

@decofe
Copy link
Member

@decofe decofe commented Mar 20, 2026

When a service row is expanded (selected) and the user types a search query, expandedIds was never cleared. This left data-has-expanded on the table wrapper, which applies opacity: 0.35 to all non-expanded rows — making everything look gray.

Changes

  • Added a useEffect in ServicesPage that resets expandedIds whenever debouncedSearch or selectedCategory changes

Testing

Repro: expand a service row → type in search → all results appear grayed out. After fix, expanding state clears on search and rows render at full opacity.

Co-Authored-By: Alexey Shekhirin 5773434+shekhirin@users.noreply.github.com

Prompted by: alexey

When a service row was expanded and the user typed a search query,
the expanded state wasn't cleared. This caused data-has-expanded to
remain on the table, dimming all rows to 0.35 opacity (gray).

Co-Authored-By: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mpp Ready Ready Preview, Comment Mar 20, 2026 2:05pm

Request Review

Co-Authored-By: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants