From f12816e4c863ea5616428d8d2d2fb9ab460cf87a Mon Sep 17 00:00:00 2001 From: Abhinav Jha Date: Fri, 22 May 2020 15:46:53 +0530 Subject: [PATCH] Remove lightning menu from url field --- .../components/editorComponents/DynamicAutocompleteInput.tsx | 5 +++-- app/client/src/pages/Editor/APIEditor/Form.tsx | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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