Skip to content

setMention method on ref does not trigger mention insertion #601

@weiningtry7

Description

@weiningtry7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions