Allow form fields styling

[PREMIUM-44]
This commit is contained in:
Pavel Dohnal
2017-12-04 08:58:17 +00:00
parent e859c090c8
commit 1f76f0d98f
2 changed files with 2 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ define([
}
return (
<tr>
<tr className={`form-field-row-${this.props.field.name}`}>
<th scope="row">
<label
htmlFor={`field_${this.props.field.name}`}

View File

@@ -164,6 +164,7 @@ define([
// we must have a blank <option> as the first option in the <select> control.
if (this.allowMultipleValues()) return undefined;
if (this.props.field.placeholder) return (<option />);
return undefined;
},
render: function () {
const options = this.state.items.map((item, index) => {