palantir/blueprint

FR: components should be able to operate in child window documents

开放

#3,972 创建于 2020年2月19日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
Package: coreType: feature requesthelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (平均合并 43天 10小时) (30 天内合并 27 个 PR)

描述

currently, some components like (e.g. NumericInput) reference window.document implicitly, which can may not be the document of the window where the component is being rendered in the case of React portal techniques like this one. we should look into supporting this use case.

possible solution: define a blueprint React context which includes an optional field which sets this.document on all components

贡献者指南