palantir/blueprint

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

Open

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

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

描述

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

贡献者指南