palantir/blueprint

Popover's boundary prop does not accept Element objects

Open

#3,570 创建于 2019年5月27日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)TypeScript (20,263 star) (2,167 fork)batch import
P3Package: coreType: bughelp wanted

描述

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.

贡献者指南

Popover's boundary prop does not accept Element objects · palantir/blueprint#3570 | Good First Issue