Skip to content

Commit

Permalink
Use the counterReset property as a way to force Safari to rerender wh…
Browse files Browse the repository at this point in the history
…en the column gap value changes
  • Loading branch information
andrewserong committed May 25, 2021
1 parent 34f30f1 commit 0e0a19b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/columns/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ function ColumnsEditContainer( {
style: {
gap: gridGapWithUnit || undefined,
gridTemplateColumns,
counterReset: 'grid-gap-' + gridGapWithUnit || undefined, // This is a hack to enforce re-rendering in Safari when the gap value changes.
},
} );

Expand Down

0 comments on commit 0e0a19b

Please sign in to comment.