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:
parent
4ea2499ce7
commit
96a388298f
@ -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) =>
|
||||
|
Loading…
Reference in New Issue
Block a user