@@ -316,7 +316,7 @@ export default function useAlign(
316
316
popupPoints [ 0 ] === 't' &&
317
317
nextPopupBottom > visibleArea . bottom
318
318
) {
319
- let tmpNextOffsetY : number ;
319
+ let tmpNextOffsetY : number = nextOffsetY ;
320
320
321
321
if ( sameTB ) {
322
322
tmpNextOffsetY -= popupHeight - targetHeight ;
@@ -344,7 +344,7 @@ export default function useAlign(
344
344
popupPoints [ 0 ] === 'b' &&
345
345
nextPopupY < visibleArea . top
346
346
) {
347
- let tmpNextOffsetY : number ;
347
+ let tmpNextOffsetY : number = nextOffsetY ;
348
348
349
349
if ( sameTB ) {
350
350
tmpNextOffsetY += popupHeight - targetHeight ;
@@ -381,7 +381,7 @@ export default function useAlign(
381
381
popupPoints [ 1 ] === 'l' &&
382
382
nextPopupRight > visibleArea . right
383
383
) {
384
- let tmpNextOffsetX : number ;
384
+ let tmpNextOffsetX : number = nextOffsetX ;
385
385
386
386
if ( sameLR ) {
387
387
tmpNextOffsetX -= popupWidth - targetWidth ;
@@ -409,7 +409,7 @@ export default function useAlign(
409
409
popupPoints [ 1 ] === 'r' &&
410
410
nextPopupX < visibleArea . left
411
411
) {
412
- let tmpNextOffsetX : number ;
412
+ let tmpNextOffsetX : number = nextOffsetX ;
413
413
414
414
if ( sameLR ) {
415
415
tmpNextOffsetX += popupWidth - targetWidth ;
0 commit comments