primefaces / primefaces/primereact

ScrollTop: ScrollDown-Option

Open
#2,942 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Discussed in https://github.com/orgs/primefaces/discussions/807
Describe the feature you would like to see added

I would like to see an option to set the scroll direction.

Is your feature request related to a problem?

I build a chat app. For that, I need an option to make a scroll-down button. It will be nice, if it is implemented in primereact.

Describe the solution you'd like

<ScrollTop direction={"down"}

Contributor guide

Open the contributing guide

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 locating the ScrollTop component and reviewing how its current scroll direction and props are implemented. Add the requested down-direction behavior without changing the existing default, then verify the component supports the proposed direction option and its relevant tests pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.