From 96a388298f48146cb3bd1498dcd953247ad65baa Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 14 May 2025 08:04:47 +0200 Subject: [PATCH] fix(1-3740): Don't autofocus the editable constraint field. (#9982) There can be any number of these on a page, so setting autofocus here is a Bad Idea (TM). It's probably a holdover from when the input was an accordion and we wanted to give you focus when you opened it (we do a similar thing for the popover, for instance). This property will cause you to focus (and potentially scroll) to the last constraint on the page. --- .../FeatureStrategyConstraints/EditableConstraint.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint.tsx index 826f2f57ab..2883cc57fc 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint.tsx @@ -268,7 +268,6 @@ export const EditableConstraint: FC = ({ id='context-field-select' name='contextName' label='Context Field' - autoFocus options={constraintNameOptions} value={contextName || ''} onChange={(contextField) =>