File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,13 @@ class Popover extends Popup {
379
379
return ( limits [ placement ] < 0 || ( limits [ placement ] + threshold > closedPopupParent . innerHeight ) ) || overflowsBottom || overflowsTop ;
380
380
}
381
381
382
+ shouldCloseDueToNoOpener ( openerRect ) {
383
+ return openerRect . top === 0
384
+ && openerRect . bottom === 0
385
+ && openerRect . left === 0
386
+ && openerRect . right === 0 ;
387
+ }
388
+
382
389
reposition ( ) {
383
390
const popoverSize = this . popoverSize ;
384
391
const openerRect = this . _opener . getBoundingClientRect ( ) ;
@@ -459,7 +466,7 @@ class Popover extends Popup {
459
466
460
467
const placementType = this . getActualPlacementType ( targetRect , popoverSize ) ;
461
468
462
- this . _preventRepositionAndClose = this . shouldCloseDueToOverflow ( placementType , targetRect ) ;
469
+ this . _preventRepositionAndClose = this . shouldCloseDueToNoOpener ( targetRect ) || this . shouldCloseDueToOverflow ( placementType , targetRect ) ;
463
470
464
471
const isVertical = placementType === PopoverPlacementType . Top
465
472
|| placementType === PopoverPlacementType . Bottom ;
You can’t perform that action at this time.
0 commit comments