palantir/blueprint

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

Open

#3 972 ouverte le 19 févr. 2020

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)TypeScript (2 167 forks)batch import
Package: coreType: feature requesthelp wanted

Métriques du dépôt

Stars
 (20 263 stars)
Métriques de merge PR
 (Merge moyen 43j 10h) (27 PRs mergées en 30 j)

Description

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

Guide contributeur