aframe-inspector icon indicating copy to clipboard operation
aframe-inspector copied to clipboard

Don't trigger onChange when mounting NumberWidget component

Open vincentfretin opened this issue 7 months ago • 2 comments

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.

vincentfretin avatar Jun 28 '24 12:06 vincentfretin