luceos
Thank you for the quick reply! The component looks as follows and utilizes the oninput
event combined with mithrils m.withAttr
to update the volume
prop with the value
from the input field.
{NumberInput.component({
className: 'VolumeInput',
value: calculator.properties.volume(),
oninput: m.withAttr('value', calculator.properties.volume)
})}
The field that I want to update is setup as follows:
<OutputRow
value={calculator.properties.volume()}
/>