JedWatson / JedWatson/react-select
onScroll not firing the callback
Open
Nobody has claimed this yet.
issue/bug-unconfirmed
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
let options = [
{ value: "Georgia", label: "Georgia" },
....
];
const handleScroll = (e) => {
console.log(e)
}
return (
<div className="App">
Hello World
<ReactSelect
name="test"
onScroll={handleScroll}
options={options}
/>
</div>
);
This is what my code looks like. but on the menu open, when I scroll, handleScroll function should invoked but its not.
Contributor guide
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 from the ReactSelect entry point and reproduce the supplied example with a scrollable options menu. Trace how the onScroll prop is connected to menu scrolling, then verify that handleScroll is invoked when the open menu is scrolled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100