ios - Redux 表单字段自动大写属性

标签 ios reactjs redux-form

我正在尝试通过非标准 autocapitalize属性为 redux-form Field :

<Field
  name="theName"
  autocapitalize="none"
  component={Input}
  label="Name"
  placeholder="name"
/>

但我在生成的 HTML 中看不到该属性。
有没有办法传递额外的属性?

谢谢。

最佳答案

React props 使用 camelCase 语法。所以 autocapitalize需要autoCapitalize .

Here's a list of all supported HTML props .

accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked cite classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload profile radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap

关于ios - Redux 表单字段自动大写属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40722177/

相关文章:

jquery - Visual Studio 2017 react/redux 项目中的 Bootstrap 错误 "jQuery is not defined"

javascript - 在所有主题名称字段上显示错误

reactjs - Redux 形式 : REGISTER_FIELD/UNREGISTER_FIELD get called after change or focus events

iOS 如何摆脱多余的 View 填充?

ios - 推送通知中不播放声音

iphone - UICollectionView 动画(插入/删除项目)

javascript - 到达路由器更改 URL,不更新 View

reactjs - 在 React 中有条件地添加 readOnly 的最佳方法是什么?

javascript - 如何不仅将 id 而且将完整对象传递到数组列表中

ios - 使用OAuthConsumer在iOS上访问Yelp API