Skip to content

Commit 0f4758d

Browse files
committed
fix section wrapping
1 parent 9bd4416 commit 0f4758d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/A11y.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ export const A11y: React.FC<Props> = ({
444444

445445
const section = useA11ySectionContext();
446446
let portal = {};
447-
if (section instanceof HTMLElement) {
447+
if (section.current instanceof HTMLElement) {
448448
portal = { portal: section };
449449
}
450450

0 commit comments

Comments
 (0)