appandflow / appandflow/trailhead

Scroll trail results to the top whenever filters change

Đang mở
#26 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
23 phút
Pull request đã merge (30 ngày)
7

Mô tả

## Problem

When the user changes the selected regions or switches the **Name / Distance / Rating** filter, the trail results update but keep the previous scroll position. This can leave the user partway down a newly filtered or reordered list, requiring a manual scroll back to the top.

## Expected behavior

Reset the trail results list to the top every time either the region selection or the **Name / Distance / Rating** selection changes.

## Acceptance criteria

- Selecting or deselecting a region returns the results list to the top.
- Switching between Name, Distance, and Rating returns the results list to the top.
- The behavior works from any existing scroll position.
- The top item shown belongs to the newly filtered or reordered results.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.