react-super-treeview
react-super-treeview copied to clipboard
Label title uses the node text which renders [Object object] when using a React component to render the name
When passing a react object for the name of the node to get special rendering, the component uses it for the hover title. This render [Object object].
It would be nice if it just didn't render this at all if the nodeText was NOT a string. Or, if we could pass our own value for the title hover text.
Example
{
name: (
<>
{setting.name}
<OverlayTrigger placement="top" overlay={<Tooltip id={`tooltip-issue`}>{setting.description}</Tooltip>}>
<FontAwesomeIcon icon={faInfoCircle} className="ml-2" />
</OverlayTrigger>
</>
),
id: setting.settingKey,
}
Code Location
https://github.com/azizali/react-super-treeview/blob/master/src/index.js#L234-L238
<label
htmlFor={node.id}
title={nodeText}
className="super-treeview-text"
>
https://github.com/azizali/react-super-treeview/blob/master/src/index.js#L234-L238
Hey, did you ever find a way around this? Got the same issue we could do with sorting.
No, I think I just wrapped the component and handled it myself.