mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
do allow Enter to proceed to next step if survey fields invalid
This commit is contained in:
@@ -229,6 +229,12 @@ export default [ 'ProcessErrors', 'CredentialTypeModel', 'TemplatesStrings', '$f
|
|||||||
};
|
};
|
||||||
|
|
||||||
vm.keypress = (event) => {
|
vm.keypress = (event) => {
|
||||||
|
if (vm.steps.survey.tab._active && !vm.readOnlyPrompts && !vm.forms.survey.$valid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (document.activeElement.type === 'textarea') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (event.key === 'Enter') {
|
if (event.key === 'Enter') {
|
||||||
vm.next(activeTab);
|
vm.next(activeTab);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user