Skip to content

Commit

Permalink
Spacing: Fix reset of spacing sizes control (#50455)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 9, 2023
1 parent 24e2967 commit ab5efbf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default function SpacingInputControl( {

const previousValue = usePrevious( value );
if (
!! value &&
previousValue !== value &&
! isValueSpacingPreset( value ) &&
showCustomValueControl !== true
Expand Down

1 comment on commit ab5efbf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in ab5efbf.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4931407091
📝 Reported issues:

Please sign in to comment.