Allow form fields styling
[PREMIUM-44]
This commit is contained in:
@@ -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}`}
|
||||||
|
@@ -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) => {
|
||||||
|
Reference in New Issue
Block a user