`getContainerRenderWindow` in Saturation component inside iframe is causing a crash
yarindeohcld opened this issue · 7 comments
yarindeohcld commented
I'm rendering a custom picker inside an iframe that is using Saturation
common component.
I'm receiving a CORS origin error that caused by the following code:
getContainerRenderWindow
var container = this.container;
var renderWindow = window;
while (!renderWindow.document.contains(container) && renderWindow.parent !== renderWindow) {
renderWindow = renderWindow.parent;
}
return renderWindow;
}
after evaluating renderWindow = renderWindow.parent
, there's no document to access and it caused the failures. What is the propose behind that ?
a local fix was to override this method and return always window
.
any insights ? it need to be used in prod
woowalker commented
same problem, still finding solution
hengwangm commented
woowalker commented
still 2.19.3
nuthinking commented
Having this issue too and my panel is not even display the Saturation option!
nuthinking commented
Fix is here: uiwjs/react-color#81 (comment)
zmapleshine commented
Execute: yarn add react-color@2.18.1 to install a specific version, without upgrading to 2.19.x."