Stop OnEnter firing when component mounts
skirankumar7 opened this issue · 0 comments
skirankumar7 commented
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