fix input types

This commit is contained in:
Cihan Bebek
2017-07-06 14:09:21 +03:00
parent c62f00b279
commit af89f78bee

View File

@@ -139,7 +139,7 @@ module.exports = React.createClass({
<input
key = { fieldName }
className = { inputClasses }
type = 'text'
type = { fieldName == 'email' ? 'email' : 'text' }
name = { fieldName }
placeholder = { fieldNameTranslations[fieldName].fi }
value = { this.state[fieldName] }