React-toolbox: Set attributes on internal <input> element

Created on 15 Mar 2016  路  3Comments  路  Source: react-toolbox/react-toolbox

Is there a way to apply attributes to the inner <input> element inside a react-toolbox <Input>?

I need to apply the attributes autocomplete="off", autocorrect="off", autocapitalize="off", and spellcheck="false" to the inner <input> element to prevent iOS from doing those things (i'm trying to use an <Input> to enter carton identifier strings, and iOS likes to autocorrect carton strings into words...)

Most helpful comment

You can just put them on the Input element that they will get passed on the base . You just have to mind that some of those attributes use camel case in react https://facebook.github.io/react/docs/tags-and-attributes.html (autoCapitalize, autoComplete, autoCorrect, spellCheck)

All 3 comments

You can just put them on the Input element that they will get passed on the base . You just have to mind that some of those attributes use camel case in react https://facebook.github.io/react/docs/tags-and-attributes.html (autoCapitalize, autoComplete, autoCorrect, spellCheck)

Well then that's my problem, thanks!

Thanks @felipeleusin !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wtgtybhertgeghgtwtg picture wtgtybhertgeghgtwtg  路  3Comments

guacamoli picture guacamoli  路  4Comments

margaretmoser picture margaretmoser  路  3Comments

kodermax picture kodermax  路  4Comments

devarsh picture devarsh  路  3Comments