react-component / react-component/mentions

[question] any way to use suggestions with spaces

Open
#17 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
112
Forks
65
Avg merge
28m
Merged PRs (30d)
2

Description

Hi!
Can you tell about possibility to use spaces in suggestions.
I want to have vocabulary ['hi world', 'hello world', 'world'].
I was debugging code and find https://github.com/react-component/mentions/blob/331757d9b5cdaccabd76ecdeed0f6954bc019d7a/src/Mentions.tsx#L161 =(
I'm also used Ant.design if it helpful.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/Mentions.tsx around line 161, which the issue identifies while describing how suggestions are processed. Investigate how the example vocabulary with spaces is handled and define completion as supporting those suggestions without breaking the existing single-word example.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.