WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.34k stars 4.13k forks source link

Sidebar API not activating the update button. #13523

Closed jessewaitz closed 5 years ago

jessewaitz commented 5 years ago

I have created a sidebar for my theme with a list of page options, using button groups for toggling the the various page options. My code is based on the code from this tutorial: https://www.codeinwp.com/blog/make-plugin-compatible-with-gutenberg-sidebar-api/

My plugin works just fine, and saves the post meta, but the problem is that when i click these buttons, the editor's update button does not activate. I have to edit something in one of the blocks inside the main editor window to get the update button to change from greyed out to active. Is there a line of code I could add to make the update button activate when I click on the toggles in my sidebar?

jessewaitz commented 5 years ago

I have figured this out. I placed a comment on the above mentioned tutorial, and just today the author responded to me. Here is the link to the tutorial's comments:

https://www.codeinwp.com/blog/make-plugin-compatible-with-gutenberg-sidebar-api/#disqus_thread

Sorry for bothering you with this question, thanks for the support.