feat: Add new props for search, keyboard navigation, and scrolling
What does it do?
- The new prop
searchTermcan be used to set the initial search term or fully control the search semantics for a higher-order component. - The new prop
onSearchChangeallows specification of a callback for when the search term changes or the search mode is activated or deactivated. - The new prop
disableKeyboardNavigationallows disabling all actions associated with a key down event in the search input box. This is important if you need an input box to behave normally. For instance, when I press SHIFT+HOME, it should select the entire line, so I can press BACKSPACE to clear it. - The new prop
pageSizecan be used to control the size of the scroll view before scrolling to near the bottom is required to show more nodes.
Fixes # (issue)
Fixes https://github.com/dowjones/react-dropdown-tree-select/issues/581 Requested https://github.com/dowjones/react-dropdown-tree-select/discussions/463 Fixes https://github.com/dowjones/react-dropdown-tree-select/issues/576
Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
Checklist:
- [X] I have performed a self-review of my own code
- [X] I have commented my code, particularly in hard-to-understand areas
- [X] Updated documentation (if applicable)
- [ ] Added tests that prove my fix is effective or that my feature works
- [X] New and existing unit tests pass locally with my changes
- [X] My changes generate no new warnings
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Bump
Hello! Curious on the status of this pr, this change would help out my use case of not clearing the search term on selection.
Thanks!