Fix autosuggestions in monaco editor (#1953)
# What this PR does Bugfix for Monaco Editor on showing suggestions
This commit is contained in:
parent
5e97a2d500
commit
3c54d1bd30
1 changed files with 1 additions and 6 deletions
|
|
@ -83,11 +83,6 @@ const MonacoEditor: FC<MonacoEditorProps> = (props) => {
|
|||
return <LoadingPlaceholder text="Loading..." />;
|
||||
}
|
||||
|
||||
const otherProps: any = {};
|
||||
if (useAutoCompleteList) {
|
||||
otherProps.getSuggestions = { autoCompleteList };
|
||||
}
|
||||
|
||||
return (
|
||||
<CodeEditor
|
||||
monacoOptions={monacoOptions}
|
||||
|
|
@ -99,7 +94,7 @@ const MonacoEditor: FC<MonacoEditorProps> = (props) => {
|
|||
width="100%"
|
||||
height={height}
|
||||
onEditorDidMount={handleMount}
|
||||
{...otherProps}
|
||||
getSuggestions={useAutoCompleteList ? autoCompleteList : undefined}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue