From 19ad5fe6e74f856697393287fc7282d37274c566 Mon Sep 17 00:00:00 2001 From: vashjs Date: Tue, 22 Oct 2024 20:19:49 +0200 Subject: [PATCH] add fn --- lib/RepeatableField/RepeatableField.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/RepeatableField/RepeatableField.js b/lib/RepeatableField/RepeatableField.js index 666aaddf3..c8cf5af12 100644 --- a/lib/RepeatableField/RepeatableField.js +++ b/lib/RepeatableField/RepeatableField.js @@ -35,6 +35,7 @@ const RepeatableField = ({ const fieldsLength = fields.length; const isSomeChildElementFocused = useIsElementFocused(rootRef); const focusedIndex = useFocusedIndex(fieldsLength); + const hasToBeFocused = (index) => isSomeChildElementFocused && focusedIndex === index; return (
{renderField(field, index, fields)}