Skip to content

Show Mentions after @ symbol #5844

Open
@maliuta-oleksandr

Description

@maliuta-oleksandr

Problem
When I enter only @ symbol - I don't understand that there are mentions, I want to show first 10 mentions from the list, so user can continue typing and filter/select available. Currently user has to enter @ and first letter to see the dropdown

Solution
Show the mentions dropdown immediately after entering @ symbol.

Context
Tried to solve it, modifying https://github.com/ianstormtaylor/slate/blob/main/site/examples/ts/mentions.tsx
But issue which I didn't get - Editor.before(editor, wordBefore) doesn't return any value without entering first letter

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions