Skip to content

Commit

Permalink
fix: add type definition for disablePoppingOnBackspace prop (#554)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
r-zane-spalding and mrchief authored Mar 8, 2022
1 parent 4c82bab commit 7cf5af9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/react-dropdown-tree-select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ declare module 'react-dropdown-tree-select' {
searchPredicate?: (currentNode: TreeNode, searchTerm: string) => boolean
/** inlineSearchInput=true Makes the search input renders inside the dropdown-content. Defaults to `false` */
inlineSearchInput?: boolean
/** disablePoppingOnBackspace=true indicates that when a user triggers a 'backspace' keyDown in the empty
* search bar, the tree will not deselect nodes.
*/
disablePoppingOnBackspace?: boolean
}

export interface DropdownTreeSelectState {
Expand Down

0 comments on commit 7cf5af9

Please sign in to comment.