Skip to content

Commit

Permalink
update lib before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Jan 15, 2019
1 parent ab7c0f0 commit d8862e6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ var _FormControl = require("@material-ui/core/FormControl");

var _FormControl2 = _interopRequireDefault(_FormControl);

var _FormHelperText = require("@material-ui/core/FormHelperText");

var _FormHelperText2 = _interopRequireDefault(_FormHelperText);

var _ComposedComponent = require("./ComposedComponent");

var _ComposedComponent2 = _interopRequireDefault(_ComposedComponent);
Expand Down Expand Up @@ -104,6 +108,7 @@ var Select = function (_Component) {

var _props = this.props,
form = _props.form,
error = _props.error,
getLocalizedString = _props.localization.getLocalizedString;
var currentValue = this.state.currentValue;

Expand Down Expand Up @@ -131,9 +136,10 @@ var Select = function (_Component) {
);
});
}

return _react2.default.createElement(
_FormControl2.default,
{ fullWidth: true },
{ fullWidth: true, error: !!error },
_react2.default.createElement(
_InputLabel2.default,
{ required: form.required },
Expand All @@ -148,6 +154,11 @@ var Select = function (_Component) {
onChange: this.onSelected
},
menuItems
),
_react2.default.createElement(
_FormHelperText2.default,
null,
(error || form.description) && getLocalizedString(error || form.description)
)
);
}
Expand Down

0 comments on commit d8862e6

Please sign in to comment.