From 59c992d35dc045d829ef82a592e2576e98873467 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 2 Mar 2018 16:24:54 +0100 Subject: [PATCH] focus first field in the user form (#3112) --- .../sonar-web/src/main/js/apps/users/components/UserForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/users/components/UserForm.tsx b/server/sonar-web/src/main/js/apps/users/components/UserForm.tsx index 95ccccce126..c3c4e670af0 100644 --- a/server/sonar-web/src/main/js/apps/users/components/UserForm.tsx +++ b/server/sonar-web/src/main/js/apps/users/components/UserForm.tsx @@ -24,7 +24,7 @@ import { createUser, updateUser } from '../../../api/users'; import { User } from '../../../app/types'; import throwGlobalError from '../../../app/utils/throwGlobalError'; import Modal from '../../../components/controls/Modal'; -import { Button, SubmitButton, ResetButtonLink } from '../../../components/ui/buttons'; +import { Button, ResetButtonLink, SubmitButton } from '../../../components/ui/buttons'; import { translate, translateWithParameters } from '../../../helpers/l10n'; import { parseError } from '../../../helpers/request'; @@ -174,6 +174,7 @@ export default class UserForm extends React.PureComponent { {/* keep this fake field to hack browser autofill */} { {/* keep this fake field to hack browser autofill */}