Skip to content

Conversation

SamJbori
Copy link

@SamJbori SamJbori commented Jan 3, 2024

While using the component with large list (5000+), it felt much easier if I can see the selected items first, epically if I am using
visibleSelectedItem={false}, so I added an optional selectedToTop Boolean property that will trigger this behavior.

simply it will filter the data twice and using the checkSelected() method

Media_240103_133343

I tested the speed and it's just fine

I hope you like it and approve, I've started programming few months ago and this is my first contribution, I hope it's of some value.

Added support to selectedToTop
Added support to selectedToTop
Added support to selectedToTop
Added support to selectedToTop
Added support to selectedToTop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant