mirror of
https://github.com/xodio/xod.git
synced 2026-03-24 17:46:56 +01:00
refactor(xod-client): remove useless div wrapper from Widget
This commit is contained in:
@@ -117,16 +117,14 @@ class Widget extends React.Component {
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="InspectorWidget">
|
||||
<Component
|
||||
{...restProps}
|
||||
elementId={`widget_${this.props.keyName}`}
|
||||
value={this.state.value}
|
||||
onBlur={this.onBlur}
|
||||
onChange={this.onChange}
|
||||
onKeyDown={this.onKeyDown}
|
||||
/>
|
||||
</div>
|
||||
<Component
|
||||
{...restProps}
|
||||
elementId={`widget_${this.props.keyName}`}
|
||||
value={this.state.value}
|
||||
onBlur={this.onBlur}
|
||||
onChange={this.onChange}
|
||||
onKeyDown={this.onKeyDown}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user