Component continues to work when rendered inside iframe.
Draggables cannot be dragged when rendered inside iframe using react-frame-component. Work as expected when outside iframe.
class Main extends React.Component {
render() {
return (
<Frame>
<FrameContextConsumer>
{
({document, window}) => {
return (<Provider store={store}>
<App />
</Provider>)
}
}
</FrameContextConsumer>
</Frame>
)
}
}
And use a dnd component inside App.
Does it have anything to do with the React global variable window and document by any chance?
React are you using?"react": "^16.13.1"
react-beautiful-dnd are you running?"react-beautiful-dnd": "^13.0.0"
Latest stable Chrome
N/A
It is supposedly fixed in #1067. Am I doing something wrong here?
I have the same problem.
I have created a sandbox just in case someone wants to take a look at it
@erganmedia Thanks! The sandbox has a typo, <IFrame> should be <Frame>.
@Tinyik were you able to find a workaround for this? There is a fork called react-beautiful-dnd-iframe that supports iframes, but is still on v9.0. Unfortunately I need some of the newer features so it doesn't work for me.
Unfortunately no
On Tue, Aug 25, 2020 at 17:35 Ethan Yu notifications@github.com wrote:
>
>
@Tinyik https://github.com/Tinyik were you able to find a workaround
for this? There is a fork called react-beautiful-dnd-iframe that supports
iframes, but is still on v9.0. Unfortunately I need some of the newer
features so it doesn't work for me.—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/atlassian/react-beautiful-dnd/issues/1804#issuecomment-680363557,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTWPEUKQ76X3OBIYHLYDWDSCRKELANCNFSM4LZ7CF5Q
.
Any updates on this issue ?
Most helpful comment
I have the same problem.
I have created a sandbox just in case someone wants to take a look at it