fix: cast string to Number when setting attribute (#21)
Co-authored-by: zishan <zishan.khan@roularta.be>
This commit is contained in:
committed by
GitHub
parent
e3a976fe7a
commit
b7c236376b
@ -152,7 +152,7 @@
|
||||
disabled: props.attributes.unlimited,
|
||||
value: props.attributes.limit,
|
||||
onChange: function( val ) {
|
||||
props.setAttributes( { limit: val } );
|
||||
props.setAttributes( { limit: Number( val ) } );
|
||||
},
|
||||
}
|
||||
),
|
||||
|
Reference in New Issue
Block a user