From 14686e8b16c930a5cf1597f21c569f8c2ce6d664 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Wed, 3 Feb 2021 22:52:33 -0500 Subject: [PATCH] Prevent enter-submit on prompt steps --- .../LaunchPrompt/steps/CredentialPasswordsStep.jsx | 6 +++++- .../src/components/LaunchPrompt/steps/OtherPromptsStep.jsx | 6 +++++- .../src/components/LaunchPrompt/steps/SurveyStep.jsx | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/awx/ui_next/src/components/LaunchPrompt/steps/CredentialPasswordsStep.jsx b/awx/ui_next/src/components/LaunchPrompt/steps/CredentialPasswordsStep.jsx index 34824ddd03b2..675a6a84774a 100644 --- a/awx/ui_next/src/components/LaunchPrompt/steps/CredentialPasswordsStep.jsx +++ b/awx/ui_next/src/components/LaunchPrompt/steps/CredentialPasswordsStep.jsx @@ -84,7 +84,11 @@ function CredentialPasswordsStep({ launchConfig, i18n }) { } return ( -
+ { + e.preventDefault(); + }} + > {showcredentialPasswordSsh && ( + { + e.preventDefault(); + }} + > {launchConfig.ask_job_type_on_launch && } {launchConfig.ask_limit_on_launch && ( + { + e.preventDefault(); + }} + > {surveyConfig.spec.map(question => { const Field = fieldTypes[question.type]; return (