To Reproduce
Steps to reproduce the behavior:
ref.current?.setMention('@', `@${item.name}`, {
id: item.id,
type: 'user',
});.
Expected behavior
The input field should replace the trigger character @ with the mention label (e.g., @johndoe) and treat it as an atomic enriched entity. The cursor should move to the position immediately following the mention.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The input field should replace the trigger character @ with the mention label (e.g., @johndoe) and treat it as an atomic enriched entity. The cursor should move to the position immediately following the mention.