-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Description
What you were expecting:
I have a TextInput inside <SimpleFormIterator />
of the ArrayInput.
If I set the autoFocus property to false, I expect it will not be focused when clicking the add button from the SimpleFormIterator
What happened instead:
The input field is always autoFocused, there is no way to disable it.
Steps to reproduce:
Create an ArrayInput with SimpleFormIterator and some TextInput inside. The TextInput explicitly has autoFocus set to false.
When clicking the add button in the SimpleFormIterator, it still gets the focus, which is not the expected behavior.
Related code:
Other information:
Environment
- React-admin version: 5.11.2
- Last version that did not exhibit the issue (if applicable):
- React version: 19.1.0
- Browser: Safari 17.5
- Stack trace (in case of a JS error):
Metadata
Metadata
Assignees
Labels
No labels