diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx index 34b51e5471792..762e63a1941ab 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connectors/create_connector/start_step.tsx @@ -65,6 +65,7 @@ export const StartStep: React.FC = ({ generatedConfigData, isGenerateLoading, isCreateLoading, + isFormDirty, } = useValues(NewConnectorLogic); const { setRawName, createConnector, generateConnectorName, setFormDirty } = useActions(NewConnectorLogic); @@ -208,7 +209,9 @@ export const StartStep: React.FC = ({ { defaultMessage: 'Elastic managed' } )} checked={selfManagePreference === 'native'} - disabled={selectedConnector?.isNative === false || isRunningLocally} + disabled={ + selectedConnector?.isNative === false || isRunningLocally || isFormDirty + } onChange={() => onSelfManagePreferenceChange('native')} name="setUp" /> @@ -229,6 +232,7 @@ export const StartStep: React.FC = ({ { defaultMessage: 'Self-managed' } )} checked={selfManagePreference === 'selfManaged'} + disabled={isFormDirty} onChange={() => onSelfManagePreferenceChange('selfManaged')} name="setUp" />