diff --git a/app/client/src/components/editorComponents/DynamicAutocompleteInput.tsx b/app/client/src/components/editorComponents/DynamicAutocompleteInput.tsx index ec13aa725c..3143c4566a 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(); if (cursor === undefined) { @@ -544,7 +545,7 @@ class DynamicAutocompleteInput extends Component { this.setState({ isFocused: true }, () => { this.handleAutocompleteVisibility(this.editor); }); - }; + } 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