From 3d19c46326861f2bdf1c4c8f4181b73f5374d528 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Mon, 25 Sep 2023 20:13:31 +0300 Subject: [PATCH] style(kubernetes): disable autoFocus warning [EE-5752] (#10368) --- app/react/kubernetes/applications/ConsoleView/ConsoleView.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/react/kubernetes/applications/ConsoleView/ConsoleView.tsx b/app/react/kubernetes/applications/ConsoleView/ConsoleView.tsx index 3f93941cb..b61f0f027 100644 --- a/app/react/kubernetes/applications/ConsoleView/ConsoleView.tsx +++ b/app/react/kubernetes/applications/ConsoleView/ConsoleView.tsx @@ -132,6 +132,9 @@ export function ConsoleView() { value={command} onChange={(e) => setCommand(e.target.value)} id="consoleCommand" + // disable eslint because we want to autofocus + // this is ok because we only have one input on the page + // https://portainer.atlassian.net/browse/EE-5752 // eslint-disable-next-line jsx-a11y/no-autofocus autoFocus />