Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix missing null type.
Co-authored-by: Marco Ciampini <[email protected]>
  • Loading branch information
sarayourfriend and ciampo authored May 20, 2021
commit a5307b546e548f1590e73d74c713f484bb91c065
2 changes: 1 addition & 1 deletion packages/compose/src/hooks/use-focus-return/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function useFocusReturn( onFocusReturn ) {
if ( onFocusReturnRef.current ) {
onFocusReturnRef.current();
} else {
/** @type {HTMLElement} */ ( focusedBeforeMount.current )?.focus();
/** @type {null | HTMLElement} */ ( focusedBeforeMount.current )?.focus();
}
}
}, [] );
Expand Down