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 ( return (
<tr> <tr className={`form-field-row-${this.props.field.name}`}>
<th scope="row"> <th scope="row">
<label <label
htmlFor={`field_${this.props.field.name}`} 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. // we must have a blank <option> as the first option in the <select> control.
if (this.allowMultipleValues()) return undefined; if (this.allowMultipleValues()) return undefined;
if (this.props.field.placeholder) return (<option />); if (this.props.field.placeholder) return (<option />);
return undefined;
}, },
render: function () { render: function () {
const options = this.state.items.map((item, index) => { const options = this.state.items.map((item, index) => {