import React from "react";
import { TreeSelect, Button, Select } from "antd";
const SHOW_PARENT = TreeSelect.SHOW_PARENT;
const config = {
treeData,
value: this.state.value,
onChange: this.onSelect,
treeCheckable: true,
showCheckedStrategy: SHOW_PARENT,
searchPlaceholder: "",
maxTagCount: 1,
multiple: true,
size: 150,
dropdownStyle: { maxHeight: "450px", overflow: "auto", position: "absolute" },
allowClear: true,
dropdownMatchSelectWidth: false,
style: {
width: 150,
},
onSearch: this.onSearch,
};
<TreeSelect {...config} />
because allowClear: true is used, can this clear button add a callback? I didn"t see it in the file.