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
parent
commit
ce4d3a00d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/tree/demo/search.md

2
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);
};

Loading…
Cancel
Save