mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +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'
|
id='context-field-select'
|
||||||
name='contextName'
|
name='contextName'
|
||||||
label='Context Field'
|
label='Context Field'
|
||||||
autoFocus
|
|
||||||
options={constraintNameOptions}
|
options={constraintNameOptions}
|
||||||
value={contextName || ''}
|
value={contextName || ''}
|
||||||
onChange={(contextField) =>
|
onChange={(contextField) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user