aframe-inspector
aframe-inspector copied to clipboard
Don't trigger onChange when mounting NumberWidget component
When clicking an entity that have a position with 5 decimals, it opens the right panel, triggering props.onChange on the NumberWidget react component for position x y z, thus truncating to 3 decimals the coordinates and adding a change to the undo stack I'm currently implementing. We don't want to do any change when just mounting the react component.