我在bootstrap模式中有一个表单但是当我将它实现为redux-form时,它不允许我在字段中键入任何内容(尽管键入的字符正在加载并且正在改变状态)。我做错了什么?
import React, {Component} from 'react';
import { Field, reduxForm } from 'redux-form';
import { createStore, combineReducers } from 'redux';
class ItemsContainer extends Component{
render(){
const { handleSubmit } = this.props;
//markup stuff...
<form onSubmit={handleSubmit}>
<div className="modal-body form-group">
<div>
<label htmlFor="nombre">Nombre</label>
<br/>
<Field name="nombre" component="input" type="text" placeholder='¿Qué vendes?' className = 'form-control'/>
</div>
//more form markup
ItemsContainer = reduxForm({
form: 'articulo' // a unique name for this form
})(ItemsContainer);
export default ItemsContainer;