Gutenberg RangeControl

I’m trying to use the RangeControl component. This is what I’m doing:

el(
RangeControl,
{
label: ‘Columns’,
value: props.attributes.my_attribute,
initialPosition: 1,
min: 0,
max: 3,
onChange: function( val ) {
}
}
),

this works Ok, but If I specify a different variable in the value parameter (and setup my attribute through the onChange event, instead), then the component stops working (actually, the onChange event is fired, but the component doesn’t render correctly moving the current value indicator).

Is there something I’m missing here? Is this the intended behavior, or have I accidentally discovered a bug in the component?

Thank you!

Read more here:: Gutenberg RangeControl

Leave a Reply

Your email address will not be published. Required fields are marked *