diff --git a/README.md b/README.md index 5e82220..248ccab 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,10 @@ caching time of 12 hours obviously makes no sense. ## Changelog +### 1.2.1 - 2022-02-01 + +* Fix issue with limit in Gutenberg block. + ### 1.2.0 - 2022-01-23 * Requires WordPress 4.7 or above diff --git a/scripts/block.js b/scripts/block.js index 3c1ab22..01860c2 100644 --- a/scripts/block.js +++ b/scripts/block.js @@ -152,7 +152,7 @@ disabled: props.attributes.unlimited, value: props.attributes.limit, onChange: function( val ) { - props.setAttributes( { limit: val } ); + props.setAttributes( { limit: Number( val ) } ); }, } ),