Skip to content

Two checkbox controls in PluginPostStatusInfo – clicking one triggers both #12289

@florianbrinkmann

Description

@florianbrinkmann

Describe the bug

I have two plugin installed, that both add a checkbox to the publish area via PluginPostStatusInfo. If one of both is already clicked and I reload the editor, both get triggered if I click the box that is not checked. If both are checked, both get unchecked. After the first click, it works.

But the changed status of the not-clicked checkbox does not get saved – after clicking update, the correct status gets highlighted again.

To Reproduce

Steps to reproduce the behavior:

Not so easy, the checkbox values are depending on custom meta values.

I created a Gist with the code of both checkboxes in one file, so you can take a look how the code is: https://gist.github.com/florianbrinkmann/2c1fd1b7477f28354d65380dcc8c4170

Expected behavior
Only the one checkbox should be triggered.

Screenshots

two-checkbox-issue

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Version: 65.0a1 (2018-11-24) (64-Bit)

Additional context

  • Gutenberg 4.5.1.

Metadata

Metadata

Assignees

Labels

[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions