Fix inputfield id bug

pull/10616/head
deniz kusefoglu 2018-01-02 12:32:45 -08:00
parent 3aeeae1bb8
commit b7aae4fabc
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ const HandlerInput = ({
<div className={redacted ? 'form-control-static redacted-handler' : null}>
<input
name={fieldName}
id={fieldName}
id={selectedHandler.alias + fieldName}
className="form-control input-sm form-malachite"
type={redacted ? 'hidden' : 'text'}
placeholder={placeholder}
@ -35,7 +35,7 @@ const HandlerInput = ({
value={
parseToArray
? _.join(selectedHandler[fieldName], ' ')
: selectedHandler[fieldName]
: selectedHandler[fieldName] || ''
}
autoComplete="off"
spellCheck="false"