Browse Source
chore: Tree search demo type error (#38390)
* Update search.md
* Update search.md
pull/38400/head
Ashish Kapoor
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
components/tree/demo/search.md
|
|
@ -81,7 +81,7 @@ const App: React.FC = () => { |
|
|
|
const [searchValue, setSearchValue] = useState(''); |
|
|
|
const [autoExpandParent, setAutoExpandParent] = useState(true); |
|
|
|
|
|
|
|
const onExpand = (newExpandedKeys: string[]) => { |
|
|
|
const onExpand = (newExpandedKeys: React.Key[]) => { |
|
|
|
setExpandedKeys(newExpandedKeys); |
|
|
|
setAutoExpandParent(false); |
|
|
|
}; |
|
|
|