marchaos / react-virtualized-sticky-tree

A React component for efficiently rendering tree like structures with support for position: sticky
MIT License
151 stars 12 forks source link

Prevent undefined error in backwardSearch #21

Closed JPNZ4 closed 4 years ago

JPNZ4 commented 4 years ago

20

Added a check to prevent an undefined error if the searchPos is larger then the node length.

If the searchPos is larger, I have returned 0 forcing it back to the top, are you happy with that logic?

veeKewl commented 4 years ago

hi ! Is this already in the latest version ?

marchaos commented 4 years ago

I pushed 2.1.27 with thix fix. Thanks!

veeKewl commented 4 years ago

image Hiii ! idk but why is the fix not included here ? i have the latest. :)