Closed philmetzger closed 8 months ago
I have this Mention:
<Mention style='' className='mentions__mention' appendSpaceOnAdd={true} trigger='#' data={tags ? tags?.map((tag) => ({ id: tag, display: tag })) : []} displayTransform={(tag) => `#${tag}`} renderSuggestion={(suggestion, search, highlightedDisplay) => ( <div className='py-2 px-4'> <Text>#{highlightedDisplay}</Text> </div> )} // markup='#__id__' />
Now in my textarea, if i type "hello #cool", its actually seen as: "hello @[cool](cool) " But I want it to be "hello #cool" If I include the line for markup above, then it works, except it does not filter the data as I type.
hello @[cool](cool)
Any ideas?
nevermind, figured it out, there is newPlainTextValue in the onChange handler :)
I have this Mention:
Now in my textarea, if i type "hello #cool", its actually seen as: "
hello @[cool](cool)
" But I want it to be "hello #cool" If I include the line for markup above, then it works, except it does not filter the data as I type.Any ideas?