1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

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.
This commit is contained in:
Thomas Heartman 2025-05-14 08:04:47 +02:00 committed by GitHub
parent 4ea2499ce7
commit 96a388298f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,7 +268,6 @@ export const EditableConstraint: FC<Props> = ({
id='context-field-select'
name='contextName'
label='Context Field'
autoFocus
options={constraintNameOptions}
value={contextName || ''}
onChange={(contextField) =>