civiccc / civiccc/react-waypoint

Stop OnEnter firing when component mounts

Open
#305 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4k
Forks
206
PR merge metrics
No merged PRs in 30d

Description

### **_Stop OnEnter firing when component mounts_ :**

Instead, I want only fire when the scrollbar touched the bottom
In my component did mount I have fetched records and showing in Menu dropdown, **at the end of the list I am adding react-waypoint** so when scrollbar touched to bottom OnEnter fires,

But my case onClick on the Select(Material UI) will open DropdownMenu, here after opening this menu is firing OnEnter and api call hitting again fetching data this is not what I want,

**how do I stop On the opening of menu stop firing onEnter, only fire onscroll**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.