react-component / react-component/select

如何在 select 组件监听 trigger 的 forcePopupAlign 方法?

Open
#482 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
938
Forks
482
Avg merge
15h 8m
Merged PRs (30d)
2

Description

我Select 的 dropdown 是在 body,希望容器滚动时,dropdown 跟随滚动,初始获取滚动的位置,但是搜索后,可能触发 forcePopupAlign 导致之前计算的 top bottom 都没有用了。。

所以希望能知道触发了 forcePopupAlign,并同时重新计算位置

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 at the Select dropdown positioning flow and trace where forcePopupAlign is invoked after search. Define completion as exposing a way to observe that trigger and recalculate the dropdown position when it fires, then verify behavior during container scrolling and search.

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.