Hello,
sometimes happens that a tag is very long and takes all the available width in the multiselect input box.
In such cases it's very difficult to find the right point to click in order to open the option list.
I'd like to add code to open the popup list when clicking on a tag.
I thought of using the tagRender property to make the tag clickable, but then I don't know what is the most appropriate way to trigger the open event in the multiselect:
const tagRender = (tagData: TagData, li: React.ReactElement<HTMLLIElement, string | React.JSXElementConstructor<any>>) =>
React.cloneElement(li, li.props,
[<span key={sizes.indexOf(tagData.data[0])} className="custom-tag" onClick={() => {console.log('li:', li) /*do something to open the list*/}}>{sizes.indexOf(tagData.data[0])}</span>, li.props.children])
Thank you
Kind regards