Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed May 15, 2024
1 parent d81f23c commit c05a146
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { directivePrefix } from './constants';

// Keep the same root fragment for each interactive region node.
const regionRootFragments = new WeakMap();
export const getRegionRootFragment = ( region ) => {
if ( ! regionRootFragments.has( region ) ) {
export const getRegionRootFragment = ( region: Element ) => {
if ( ! regionRootFragments.has( region ) && region.parentElement ) {
regionRootFragments.set(
region,
createRootFragment( region.parentElement, region )
Expand Down

0 comments on commit c05a146

Please sign in to comment.