-
Hello, I'm using the I was expecting the new const fieldId = append({ title: 'New element' })
setFocus(fieldId) Thank you for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Function For example:
|
Beta Was this translation helpful? Give feedback.
-
Is there any direct way now? I'm also trying to get id of the newly added field. Will try the shared answer though. |
Beta Was this translation helpful? Give feedback.
@Rathalin
Function
append
always add item at the end of field array. You just need to watch on change offields
object fromuseFieldArray
hook to get last item and set focus on it.For example: