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

Dragging Widget or block over text widget and letting go pastes text #26226

Closed
DaisyOlsen opened this issue Oct 16, 2020 · 4 comments
Closed
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Bug An existing feature does not function as intended

Comments

@DaisyOlsen
Copy link
Contributor

Describe the bug
When I dragged the Tag Cloud and happened to be over a Text widget’s text area when I let go of it, the text went into the Text widget instead of moving the Tag Cloud widget.

To reproduce
Steps to reproduce the behavior:

  1. Go to Widgets Screen
  2. Classic Text widget should be in widget area
  3. Add a Tag Cloud (probably not limited to this specific block or widget)
  4. Drag Tag Cloud over text widget and let go

Expected behavior
Widget or block should not paste the text into the text widget.

Originally reported here: https://make.wordpress.org/core/2020/09/30/call-for-testing-the-widgets-screen-in-gutenberg-9-1/#comment-40016

@DaisyOlsen DaisyOlsen added [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Bug An existing feature does not function as intended Needs Dev Ready for, and needs developer efforts labels Oct 16, 2020
@draganescu draganescu added Needs Testing Needs further testing to be confirmed. and removed Needs Dev Ready for, and needs developer efforts labels Nov 10, 2020
@draganescu
Copy link
Contributor

I wasn't able to test this because the classic editor throws an error on master in the widgets screen.

@kevin940726
Copy link
Member

It's still unclear whether we should add support for the classic widget in the widgets screen: #15916 (comment).

@Mamaduka
Copy link
Member

I was able to reproduce this issue using the following steps:

  1. Add Text widget in Classic Widget editor.
  2. Activate the Gutenberg plugin.
  3. Add Tag Cloud.
  4. Dragged Tag Cloud over text widget and let go.

Screenshot
CleanShot 2021-04-13 at 09 49 26

We discussed this issue during the triage session, and a possible solution is to ignore text area when dragging a block.

Discussion link - https://wordpress.slack.com/archives/C02QB2JS7/p1618293123294400

@Mamaduka Mamaduka removed the Needs Testing Needs further testing to be confirmed. label Apr 13, 2021
@adamziel
Copy link
Contributor

adamziel commented Jun 22, 2021

I found that the text widget remains in editing mode only as long as I keep editing it (keep focus inside). As soon as I click on the tag cloud (or anywhere else), it defaults to the preview mode. While this doesn't solve the problem of dropping blocks in textareas, it seems good enough to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

5 participants