microsoft / microsoft/BotFramework-WebChat

Clicking on 'New message' always scrolls to bottom of the most recent card. It should be customizable

Open
#5,119 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bot Services customer-reported feature-request
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Is your feature request related to a problem?

yes. When clicking on the 'New message' button, the windows always scrolls to the bottom of the latest chat.
It would be of great help if this behaviour is customizable

Describe the suggestion or request in detail

https://github.com/microsoft/BotFramework-WebChat/blob/512cc60a95bd54f8e7eb54574b6869ff3deca351/packages/component/src/Utils/scrollIntoViewWithBlockNearest.ts#L8

This behaviour should be customizable, as in the dev can control the scroll position to either top or bottom of the intented target.

Describe alternatives you have considered

No response

Additional context

No response

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 with packages/component/src/Utils/scrollIntoViewWithBlockNearest.ts at the referenced line and trace where the New message button invokes it. Determine how the target scroll position can be exposed to developers, then verify that both top and bottom behavior work for the intended target.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.