diff --git a/app/client/src/components/editorComponents/DynamicAutocompleteInput.tsx b/app/client/src/components/editorComponents/DynamicAutocompleteInput.tsx index 105b651c58..69af8df908 100644 --- a/app/client/src/components/editorComponents/DynamicAutocompleteInput.tsx +++ b/app/client/src/components/editorComponents/DynamicAutocompleteInput.tsx @@ -315,6 +315,7 @@ class DynamicAutocompleteInput extends Component { isFocused: false, autoCompleteVisible: false, }; + this.updatePropertyValue = this.updatePropertyValue.bind(this); } componentDidMount(): void { @@ -531,7 +532,7 @@ class DynamicAutocompleteInput extends Component { } }; - updatePropertyValue = (value: string, cursor: number) => { + updatePropertyValue(value: string, cursor: number) { this.editor.setValue(value); this.editor.focus(); console.log(value, cursor); @@ -539,7 +540,7 @@ class DynamicAutocompleteInput extends Component { line: 0, ch: cursor, }); - }; + } render() { const { diff --git a/app/client/src/pages/Editor/APIEditor/Form.tsx b/app/client/src/pages/Editor/APIEditor/Form.tsx index b29a2f220d..edf14d99a5 100644 --- a/app/client/src/pages/Editor/APIEditor/Form.tsx +++ b/app/client/src/pages/Editor/APIEditor/Form.tsx @@ -213,6 +213,7 @@ const ApiEditorForm: React.FC = (props: Props) => { className="t--path" placeholder="v1/method" name="actionConfiguration.path" + showLightningMenu={false} leftIcon={FormIcons.SLASH_ICON} normalize={value => value.trim()} singleLine