Skip to content

Commit 534372e

Browse files
committed
fix block validation error for progress circle
1 parent 3f50faa commit 534372e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/block/progress-circle/deprecated.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ const addAriaLabel = ( divProps, version ) => {
2525
addFilter( 'stackable.progress-circle.div-props', 'stackable/3.19.0', addAriaLabel )
2626

2727
const deprecated = [
28+
{
29+
// Trigger the migration for adding aria-label
30+
attributes: attributes( '3.18.1' ),
31+
// dev note: using withVersion HOC still results to a block validation error so we manually add the version here
32+
save: ( props => {
33+
props.version = '3.18.1'
34+
return Save( props )
35+
} ),
36+
},
2837
{
2938
// Handle the migration of shadow attributes with the change of type in 3.15.3
3039
attributes: attributes( '3.16.2' ),

0 commit comments

Comments
 (0)