Actually complete the autosuggestion feature
This commit is contained in:
1 parent
c49f6290eb
commit
7e35650398
2 files changed
+3
-3
No files matched your search
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user