Closed AkashRajpurohit closed 2 years ago
+1 for this feature
@benatpigment If you would like to review, I have created an PR for adding this #226 :)
Hey! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
When a user reaches the end of the list, on pressing the
ArrowDown
the list selection does not move back to the first item.We can add a feature to allow the list to continue the looping when it reaches the end of either side of the list, i.e. go to first item when clicked
ArrowDown
on last item and go to last item when clickedArrowUp
on first item.We can take an optional prop for the KbarResults, something like
allowLoop
and maintain backward compatibility by having its default value as false which is the current behavior. When set to true, we can enable the flow mentioned above.If this is something you feel can add value to the package, I can work on this feature and send a PR :)