diff --git a/src/addons/createSingleton.ts b/src/addons/createSingleton.ts index d76dad33..5fe95913 100644 --- a/src/addons/createSingleton.ts +++ b/src/addons/createSingleton.ts @@ -135,7 +135,7 @@ const createSingleton: CreateSingleton = ( getReferenceClientRect: typeof overrideProps.getReferenceClientRect === 'function' ? overrideProps.getReferenceClientRect - : (): ClientRect => references[index].getBoundingClientRect(), + : (): ClientRect => references[index]?.getBoundingClientRect(), }); }