diff --git a/src/web/pivotControls/index.tsx b/src/web/pivotControls/index.tsx index 411e028a0..57b682cff 100644 --- a/src/web/pivotControls/index.tsx +++ b/src/web/pivotControls/index.tsx @@ -259,28 +259,36 @@ export const PivotControls: ForwardRefComponent - {enabled && ( - - {!disableAxes && activeAxes[0] && } - {!disableAxes && activeAxes[1] && } - {!disableAxes && activeAxes[2] && } - {!disableSliders && activeAxes[0] && activeAxes[1] && } - {!disableSliders && activeAxes[0] && activeAxes[2] && } - {!disableSliders && activeAxes[2] && activeAxes[1] && } - {!disableRotations && activeAxes[0] && activeAxes[1] && ( - - )} - {!disableRotations && activeAxes[0] && activeAxes[2] && ( - - )} - {!disableRotations && activeAxes[2] && activeAxes[1] && ( - - )} - {!disableScaling && activeAxes[0] && } - {!disableScaling && activeAxes[1] && } - {!disableScaling && activeAxes[2] && } - - )} + + {enabled && ( + <> + {!disableAxes && activeAxes[0] && } + {!disableAxes && activeAxes[1] && } + {!disableAxes && activeAxes[2] && } + {!disableSliders && activeAxes[0] && activeAxes[1] && ( + + )} + {!disableSliders && activeAxes[0] && activeAxes[2] && ( + + )} + {!disableSliders && activeAxes[2] && activeAxes[1] && ( + + )} + {!disableRotations && activeAxes[0] && activeAxes[1] && ( + + )} + {!disableRotations && activeAxes[0] && activeAxes[2] && ( + + )} + {!disableRotations && activeAxes[2] && activeAxes[1] && ( + + )} + {!disableScaling && activeAxes[0] && } + {!disableScaling && activeAxes[1] && } + {!disableScaling && activeAxes[2] && } + + )} + {children}