react-component / react-component/portal
【BUG】scroll locker样式插入位置不对
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
在最外层设置了cssinjs StyleProvider 的container
当插入scroll locker样式时
期望结果:插入到设置的container中,
实际结果:插入到了默认header位置。
看了下代码,updateCss没有传入要插入的位置
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the scroll-locker code path and inspect how updateCss inserts the style when a StyleProvider container is configured. Trace the insertion target from StyleProvider through updateCss; done means the scroll-locker style is placed in the configured container rather than the default header location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100