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

Unable to save edits to existing widgets #27747

Closed
tellthemachines opened this issue Dec 16, 2020 · 4 comments
Closed

Unable to save edits to existing widgets #27747

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

Comments

@tellthemachines
Copy link
Contributor

Describe the bug

In the new Widgets screen, updating the content of legacy text or HTML widgets doesn't enable the "Update" button, so changes can't be saved.

To reproduce
Steps to reproduce the behavior:

  1. Go to the legacy Widgets screen.
  2. Add a text or a custom HTML widget and save changes.
  3. Switch to the new screen and try to edit the content of that widget.
  4. Observe "Update" button still disabled.

Expected behavior

Expected to be able to save any edits in the new screen.

Editor version (please complete the following information):
Latest Gutenberg.

@tellthemachines tellthemachines added [Type] Bug An existing feature does not function as intended [Feature] Widgets Screen The block-based screen that replaced widgets.php. labels Dec 16, 2020
@talldan
Copy link
Contributor

talldan commented Dec 16, 2020

Some previous work on a similar issue - #26144

@Azragh
Copy link

Azragh commented Dec 18, 2020

I can't save anything on the widgets screen. No matter what I do, when I hit save it only says: "An error occured. [object object]" ..

I found out that I can save legacy widgets when I remove "add_theme_support( 'customize-selective-refresh-widgets' )" from functions.php, but adding blocks still doesn't work. Tested with several themes without other plugins than gutenberg enabled.

@draganescu draganescu changed the title Unable to save content of text or custom HTML widgets Unable to save edits to existing widgets Feb 18, 2021
@talldan
Copy link
Contributor

talldan commented Mar 2, 2021

The preview option for the text block seems inconsistent too. I tried making some changes and the preview didn't seem to update. It could be related to this issue (or not).

@noisysocks
Copy link
Member

#30709 fixed this. The problem was that widgets like Text and Custom HTML use jQuery to trigger the change event.

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

4 participants