Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag & Drop from outside an iframe into an iFrame not working #1

Open
broncha opened this issue Sep 23, 2017 · 0 comments
Open

Drag & Drop from outside an iframe into an iFrame not working #1

broncha opened this issue Sep 23, 2017 · 0 comments

Comments

@broncha
Copy link

broncha commented Sep 23, 2017

Hi!

I have this code,

<DragDropContextProvider backend={MultiIframeBackend}>
        <div>
          <EditorToolbar 
            toggleComponents={this.handleToggle}
            componentPanelOpen={this.state.drawerOpen}
            value={this.state.value} 
            onChange={this.handleChange} 
            onDeviceChange={this.handleDeviceChange}
          />
          <ComponentDrawer drawerOpen={drawerOpen} />
          <Frame 
            mountTarget={mountTarget}
            initialContent={initialContent}
            style={{
              border:'none', 
              outline: 'medium none',
              width: sizes[device].width, 
              height: sizes[device].height, 
              transition: 'width 0.35s ease',
              margin: '0 auto',
              display: 'block'
            }}
            >
              <Canvas />
            </Frame>
        </div>
        </DragDropContextProvider>

I am dragging items from ComponentDrawer to Canvas in the Frame.
Canvas is the DropTarget
I can see that the state of DropTarget(Canvas) changing to canDrop: true, but I cant really drop anything in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant