From 5608bca65d5f8151c82f61102898f43d35f2385c Mon Sep 17 00:00:00 2001 From: Matej Marusak Date: Fri, 7 Jan 2022 10:46:08 +0100 Subject: [PATCH] shell: Disable no-autofocus rule We need to focus password input first. There are no active elements preceding this input. Fixes #12954 --- .eslintrc.json | 2 -- pkg/shell/superuser.jsx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index d40cbdd5637..83cb4f4fdab 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -51,8 +51,6 @@ "space-before-function-paren": "off", "standard/no-callback-literal": "off", - "jsx-a11y/no-autofocus": "off", - "eqeqeq": "off", "import/no-webpack-loader-syntax": "off", "object-property-newline": "off", diff --git a/pkg/shell/superuser.jsx b/pkg/shell/superuser.jsx index 57272ffbfea..6cb21584f05 100644 --- a/pkg/shell/superuser.jsx +++ b/pkg/shell/superuser.jsx @@ -64,7 +64,7 @@ class UnlockDialog extends React.Component { validated={!state.error ? "default" : validated || "error"} >