react-component / react-component/collapse

How to scroll panel into view when it is shown on click?

Open
#96 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
332
Forks
140
Avg merge
22h 19m
Merged PRs (30d)
1

Description

Hello!
I would like the panel to be scrolled into view (if it is not in view) when the user clicks it.
I cannot get the DOM element by applying ref to the Collapse or Panel component.
Kindly advise. Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Collapse and Panel component APIs and how click events and refs are handled. Determine whether the requested behavior belongs in the component or in consumer code. Done means a clicked panel can be scrolled into view when needed and the supported ref behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.