diff --git a/ShadowEditor.Web/src/editor2/component/ReflectorComponent.jsx b/ShadowEditor.Web/src/editor2/component/ReflectorComponent.jsx index 22c45f7c..c50489bd 100644 --- a/ShadowEditor.Web/src/editor2/component/ReflectorComponent.jsx +++ b/ShadowEditor.Web/src/editor2/component/ReflectorComponent.jsx @@ -21,7 +21,7 @@ class ReflectorComponent extends React.Component { this.state = { show: false, - expanded: true, + expanded: false, reflect: false, showColor: false, diff --git a/ShadowEditor.Web/src/editor2/component/physics/PhysicsTypeComponent.jsx b/ShadowEditor.Web/src/editor2/component/physics/PhysicsTypeComponent.jsx index c3f5ab3f..6070cd56 100644 --- a/ShadowEditor.Web/src/editor2/component/physics/PhysicsTypeComponent.jsx +++ b/ShadowEditor.Web/src/editor2/component/physics/PhysicsTypeComponent.jsx @@ -17,7 +17,7 @@ class PhysicsTypeComponent extends React.Component { this.state = { show: false, - expanded: true, + expanded: false, physicsEnabled: false, type: 'rigidBody', }; diff --git a/ShadowEditor.Web/src/ui/property/PropertyGroup.jsx b/ShadowEditor.Web/src/ui/property/PropertyGroup.jsx index 3c2915dd..62d783d2 100644 --- a/ShadowEditor.Web/src/ui/property/PropertyGroup.jsx +++ b/ShadowEditor.Web/src/ui/property/PropertyGroup.jsx @@ -10,6 +10,8 @@ class PropertyGroup extends React.Component { constructor(props) { super(props); + this.contentRef = React.createRef(); + this.handleExpand = this.handleExpand.bind(this, props.onExpand); } @@ -23,7 +25,7 @@ class PropertyGroup extends React.Component {