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

Enable drop into editor for notebooks #146966

Merged
merged 1 commit into from Apr 7, 2022
Merged

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Apr 6, 2022

Fixes #146961

This makes two changes:

  • For drag over, make sure the cellDnd sees the event before the editor widget does (using useCapture). This lets us avoid showing the drop into indicator when dragging notebook cells

  • For drag_over and drop events, don't do anything if a cell is not being dragged. This lets us drop other things into code cells

Fixes #146961

This makes two changes:

- For drag over, make sure the cellDnd sees the event before the editor widget does (using `useCapture`). This lets us avoid showing the drop into indicator when dragging notebook cells

- For drag_over and drop events, don't do anything if a cell is not being dragged. This lets us drop other things into code cells
@mjbvz mjbvz added this to the April 2022 milestone Apr 6, 2022
@mjbvz mjbvz self-assigned this Apr 6, 2022
@mjbvz mjbvz merged commit ad78a1c into main Apr 7, 2022
@mjbvz mjbvz deleted the dev/mjbvz/drop-into-notebooks branch April 7, 2022 20:18
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable drop into editor for notebooks
2 participants