Fix incorrect maxlength param values
This commit is contained in:
parent
6b29c0ff28
commit
3de7b3f560
|
@ -396,7 +396,7 @@ class TheFormDef extends React.PureComponent {
|
||||||
<Input
|
<Input
|
||||||
disabled={this.props.formDisabled}
|
disabled={this.props.formDisabled}
|
||||||
autoFocus
|
autoFocus
|
||||||
maxLength="200"
|
maxLength={200}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
@ -404,7 +404,7 @@ class TheFormDef extends React.PureComponent {
|
||||||
{getFieldDecorator("subject", {
|
{getFieldDecorator("subject", {
|
||||||
initialValue: record.subject,
|
initialValue: record.subject,
|
||||||
rules: [{ required: true }]
|
rules: [{ required: true }]
|
||||||
})(<Input disabled={this.props.formDisabled} maxLength="500" />)}
|
})(<Input disabled={this.props.formDisabled} maxLength={500} />)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item {...formItemLayout} label="From address">
|
<Form.Item {...formItemLayout} label="From address">
|
||||||
{getFieldDecorator("from_email", {
|
{getFieldDecorator("from_email", {
|
||||||
|
@ -416,7 +416,7 @@ class TheFormDef extends React.PureComponent {
|
||||||
<Input
|
<Input
|
||||||
disabled={this.props.formDisabled}
|
disabled={this.props.formDisabled}
|
||||||
placeholder="Company Name <email@company.com>"
|
placeholder="Company Name <email@company.com>"
|
||||||
maxLength="200"
|
maxLength={200}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
@ -431,7 +431,7 @@ class TheFormDef extends React.PureComponent {
|
||||||
? subLists
|
? subLists
|
||||||
: this.props.data[cs.ModelLists].length === 1
|
: this.props.data[cs.ModelLists].length === 1
|
||||||
? [this.props.data[cs.ModelLists][0].id]
|
? [this.props.data[cs.ModelLists][0].id]
|
||||||
: undefined,
|
: [1],
|
||||||
rules: [{ required: true }]
|
rules: [{ required: true }]
|
||||||
})(
|
})(
|
||||||
<Select disabled={this.props.formDisabled} mode="multiple">
|
<Select disabled={this.props.formDisabled} mode="multiple">
|
||||||
|
|
|
@ -165,7 +165,7 @@ class TheFormDef extends React.PureComponent {
|
||||||
>
|
>
|
||||||
{getFieldDecorator("delim", {
|
{getFieldDecorator("delim", {
|
||||||
initialValue: ","
|
initialValue: ","
|
||||||
})(<Input maxLength="1" style={{ maxWidth: 40 }} />)}
|
})(<Input maxLength={1} style={{ maxWidth: 40 }} />)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item {...formItemLayout} label="CSV or ZIP file">
|
<Form.Item {...formItemLayout} label="CSV or ZIP file">
|
||||||
<div className="dropbox">
|
<div className="dropbox">
|
||||||
|
|
|
@ -147,7 +147,7 @@ class CreateFormDef extends React.PureComponent {
|
||||||
{getFieldDecorator("name", {
|
{getFieldDecorator("name", {
|
||||||
initialValue: record.name,
|
initialValue: record.name,
|
||||||
rules: [{ required: true }]
|
rules: [{ required: true }]
|
||||||
})(<Input autoFocus maxLength="200" />)}
|
})(<Input autoFocus maxLength={200} />)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
{...formItemLayout}
|
{...formItemLayout}
|
||||||
|
@ -202,7 +202,9 @@ class Lists extends React.PureComponent {
|
||||||
const out = []
|
const out = []
|
||||||
out.push(
|
out.push(
|
||||||
<div className="name" key={`name-${record.id}`}>
|
<div className="name" key={`name-${record.id}`}>
|
||||||
<a role="button" onClick={() => this.handleShowEditForm(record)}>{text}</a>
|
<a role="button" onClick={() => this.handleShowEditForm(record)}>
|
||||||
|
{text}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -184,13 +184,13 @@ class CreateFormDef extends React.PureComponent {
|
||||||
{getFieldDecorator("email", {
|
{getFieldDecorator("email", {
|
||||||
initialValue: record.email,
|
initialValue: record.email,
|
||||||
rules: [{ required: true }]
|
rules: [{ required: true }]
|
||||||
})(<Input autoFocus pattern="(.+?)@(.+?)" maxLength="200" />)}
|
})(<Input autoFocus pattern="(.+?)@(.+?)" maxLength={200} />)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item {...layout} label="Name">
|
<Form.Item {...layout} label="Name">
|
||||||
{getFieldDecorator("name", {
|
{getFieldDecorator("name", {
|
||||||
initialValue: record.name,
|
initialValue: record.name,
|
||||||
rules: [{ required: true }]
|
rules: [{ required: true }]
|
||||||
})(<Input maxLength="200" />)}
|
})(<Input maxLength={200} />)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
{...layout}
|
{...layout}
|
||||||
|
|
|
@ -138,7 +138,7 @@ class CreateFormDef extends React.PureComponent {
|
||||||
{getFieldDecorator("name", {
|
{getFieldDecorator("name", {
|
||||||
initialValue: record.name,
|
initialValue: record.name,
|
||||||
rules: [{ required: true }]
|
rules: [{ required: true }]
|
||||||
})(<Input autoFocus maxLength="200" />)}
|
})(<Input autoFocus maxLength={200} />)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item {...formItemLayout} name="body" label="Raw HTML">
|
<Form.Item {...formItemLayout} name="body" label="Raw HTML">
|
||||||
{getFieldDecorator("body", {
|
{getFieldDecorator("body", {
|
||||||
|
|
Loading…
Reference in New Issue