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

Layout (padding): field repopulates when attempting to delete unique side value #33319

Closed
chthonic-ds opened this issue Jul 9, 2021 · 3 comments
Assignees
Labels
[Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@chthonic-ds
Copy link
Contributor

Description

The Layout panel includes support for user-defined padding. Toggling the Link Sides button allows unique values to be entered for each side of a block. It's not possible to delete a value once entered.

Step-by-step reproduction instructions

  1. Add a Group block.
  2. Block settings > Layout > Spacing > Padding: toggle the Link Sides toggle.
  3. Enter a value in one or more of the fields.
  4. Try to delete any of the values but see the field repopulates as soon as focus is lost.

Expected behaviour

It should be possible to delete a single value.

Actual behaviour

The value initially disappears (using Delete or Backspace key on Windows) but when the field loses focus the value reappears. Clicking the Reset button will eventually clear all fields (as well as the selected unit), though this is also unreliable and can take multiple attempts.

Screenshots or screen recording (optional)

layout-spacing-field-repopulates-090721-001

WordPress information

  • WordPress version: 5.8-RC2
  • Gutenberg version: 11.0.0
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1 Blocks

Device information

  • Device: Desktop
  • Operating system: Windows 10
  • Browser: Chrome 91.0.4472.124
@chthonic-ds chthonic-ds changed the title Layout (spacing): field repopulates when attempting to delete unique side value Layout (padding): field repopulates when attempting to delete unique side value Jul 9, 2021
@paaljoachim paaljoachim added [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Bug An existing feature does not function as intended labels Jul 12, 2021
@paaljoachim
Copy link
Contributor

@aaronrobertshaw here is another issue I believe you would like to know about.

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jul 16, 2021
@aaronrobertshaw
Copy link
Contributor

A PR is up to fix the underlying cause of this issue in #33485

@aaronrobertshaw
Copy link
Contributor

Closing this issue as the PR addressing the ability to clear number controls has landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants