palantir/blueprint

Popover's boundary prop does not accept Element objects

Ouverte

#3 570 ouverte le 27 mai 2019

 (1 commentaire) (1 réaction) (0 personne assignée)TypeScript (2 167 forks)batch import
P3Package: coreType: bughelp wanted

Métriques du dépôt

Stars
 (20 263 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Package: @blueprintjs/core@3.15.1

Issue: The boundary field of IPopoverSharedProps (defined here) does not accept values of type Element.

Description: This field (boundary) is only used as the boundariesElement field in flip and preventOverflow objects in Popper modifiers, as seen here. Both of these fields in Popper (defined here and here) accept objects of type Boundary | Element, but the boundary field defined in Blueprint only accepts Boundary.

Possible Solution: Change the type here from PopperBoundary to PopperBoundary | Element.

Guide contributeur