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