Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 459f155

Browse files
committed
add comment
1 parent 4ddc97d commit 459f155

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/accessibility/RovingTabIndex.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ export const RovingTabIndexProvider: React.FC<IProps> = ({
247247

248248
if (focusRef) {
249249
focusRef.current?.focus();
250+
// programmatic focus doesn't fire the onFocus handler so we must do the do ourselves
250251
dispatch({
251252
type: Type.SetFocus,
252253
payload: {

0 commit comments

Comments
 (0)