Actually complete the autosuggestion feature
This commit is contained in:
parent
c49f6290eb
commit
7e35650398
2 changed files with 3 additions and 3 deletions
|
@ -31,10 +31,10 @@ const getTokenForSuggestions = (str, caretPosition) => {
|
|||
}
|
||||
};
|
||||
|
||||
const getSuggestionValue = suggestion => suggestion;
|
||||
const getSuggestionValue = suggestion => suggestion.completion;
|
||||
|
||||
const renderSuggestion = suggestion => (
|
||||
<span>{suggestion}</span>
|
||||
<span>{suggestion.label}</span>
|
||||
);
|
||||
|
||||
const textareaStyle = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue