How to customize the text shown after selecting an option in antd TreeSelect component?

I’m using the AntD TreeSelect component with the treeData property to populate the options for the tree. On selection of an option, I would like to display the tree path for the node, not just the node value. How can I achieve this ?
https://4x.ant.design/components/tree-select/

I tried adding tagRender attribute but that didn’t work.

Leave a Comment