Skip to content

Commit 69b062c

Browse files
committed
Fixed lint errors
1 parent b95ed14 commit 69b062c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/module/src/FieldBuilder/FieldBuilder.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const FieldBuilder: FunctionComponent<FieldBuilderProps> = ({
113113
// Track focusable elements for each row (for consumers who want to use focusRef)
114114
const focusableElementsRef = useRef<Map<number, HTMLElement>>(new Map());
115115
// State for ARIA live region announcements
116-
const [liveRegionMessage, setLiveRegionMessage] = useState<string>('');
116+
const [ liveRegionMessage, setLiveRegionMessage ] = useState<string>('');
117117
// Track previous row count for focus management
118118
const previousRowCountRef = useRef<number>(rowCount);
119119
// Track the last removed row index for focus management
@@ -177,7 +177,7 @@ export const FieldBuilder: FunctionComponent<FieldBuilderProps> = ({
177177

178178
// Update the previous row count
179179
previousRowCountRef.current = rowCount;
180-
}, [rowCount]);
180+
}, [ rowCount ]);
181181

182182
// Create ref callback for focusable elements
183183
const createFocusRef = useCallback(
@@ -201,7 +201,7 @@ export const FieldBuilder: FunctionComponent<FieldBuilderProps> = ({
201201
: `New ${rowGroupLabelPrefix.toLowerCase()} added. ${rowGroupLabelPrefix} ${newRowNumber}.`;
202202
announceChange(announcementMessage);
203203
},
204-
[onAddRow, announceChange, rowGroupLabelPrefix, rowCount, onAddRowAnnouncement]
204+
[ onAddRow, announceChange, rowGroupLabelPrefix, rowCount, onAddRowAnnouncement ]
205205
);
206206

207207
// Enhanced onRemoveRow with announcements and focus tracking
@@ -220,7 +220,7 @@ export const FieldBuilder: FunctionComponent<FieldBuilderProps> = ({
220220
: `${rowGroupLabelPrefix} ${rowNumber} removed.`;
221221
announceChange(announcementMessage);
222222
},
223-
[onRemoveRow, announceChange, rowGroupLabelPrefix, onRemoveRowAnnouncement]
223+
[ onRemoveRow, announceChange, rowGroupLabelPrefix, onRemoveRowAnnouncement ]
224224
);
225225

226226
// Helper function to render all the dynamic rows.

0 commit comments

Comments
 (0)