palantir/blueprint
Vedi su GitHubFR: components should be able to operate in child window documents
Open
#3972 aperta il 19 feb 2020
Package: coreType: feature requesthelp wanted
Metriche repository
- Star
- (20.263 star)
- Metriche merge PR
- (Merge medio 43g 10h) (27 PR mergiate in 30 g)
Descrizione
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