Skip to content

Commit 7cf5af9

Browse files
fix: add type definition for disablePoppingOnBackspace prop (#554)
* Adding disablePoppingOnBackspace prop/implementing * Adding test for disablePoppingOnBackspace * Updating snapshot index.test.js.md * Updating snapshot index.test.js.md * Updating docs with disablePoppingOnBackspaceProp * Removing snapshot * Adding snapshot back * Removing redundant assertion * Fix: adding missing disablePoppingOnBackspace prop Co-authored-by: Hrusikesh Panda <[email protected]>
1 parent 4c82bab commit 7cf5af9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

types/react-dropdown-tree-select.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ declare module 'react-dropdown-tree-select' {
9999
searchPredicate?: (currentNode: TreeNode, searchTerm: string) => boolean
100100
/** inlineSearchInput=true Makes the search input renders inside the dropdown-content. Defaults to `false` */
101101
inlineSearchInput?: boolean
102+
/** disablePoppingOnBackspace=true indicates that when a user triggers a 'backspace' keyDown in the empty
103+
* search bar, the tree will not deselect nodes.
104+
*/
105+
disablePoppingOnBackspace?: boolean
102106
}
103107

104108
export interface DropdownTreeSelectState {

0 commit comments

Comments
 (0)