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

Nested Droppable #35

Open
maxsalven opened this issue Aug 13, 2018 · 0 comments
Open

Nested Droppable #35

maxsalven opened this issue Aug 13, 2018 · 0 comments

Comments

@maxsalven
Copy link

maxsalven commented Aug 13, 2018

I have a large Droppable which has multiple smaller Droppables inside of it. Either are valid targets.

Once the mouse moves into the parent Droppable, isOver gets set to true. Once the mouse moves into a child Droppable, isOver on the parent gets set to false, and isOver on the child gets set to true, as you'd expect. However, when I move out of the child (and the cursor is still within the parent), then my parent does not get isOver set back to true.

Any thoughts? Thanks.

My parent droppable is very straightforward:

<Droppable id={date} accepts={ACCEPTS} onDrop={this.handleDrop}>
        {dragState => {
          return (
            <div {...dragState.events}>
              <Day
                {...this.props}
                isHoveredOver={dragState.isOver}
              />
            </div>
          );
        }}
      </Droppable>
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