@@ -527,6 +527,7 @@ class ChatBot extends Component {
527527 hideSubmitButton,
528528 inputStyle,
529529 placeholder,
530+ inputAttributes,
530531 recognitionPlaceholder,
531532 style,
532533 submitButtonStyle,
@@ -551,6 +552,8 @@ class ChatBot extends Component {
551552 const inputPlaceholder = speaking ? recognitionPlaceholder :
552553 currentStep . placeholder || placeholder ;
553554
555+ const inputAttributesOverride = currentStep . inputAttributes || inputAttributes ;
556+
554557 return (
555558 < div className = { `rsc ${ className } ` } >
556559 { floating && (
@@ -596,6 +599,7 @@ class ChatBot extends Component {
596599 invalid = { inputInvalid }
597600 disabled = { disabled }
598601 hasButton = { ! hideSubmitButton }
602+ { ...inputAttributesOverride }
599603 />
600604 ) }
601605 { ! currentStep . hideInput && ! hideSubmitButton && (
@@ -643,6 +647,7 @@ ChatBot.propTypes = {
643647 opened : PropTypes . bool ,
644648 toggleFloating : PropTypes . func ,
645649 placeholder : PropTypes . string ,
650+ inputAttributes : PropTypes . object ,
646651 recognitionEnable : PropTypes . bool ,
647652 recognitionLang : PropTypes . string ,
648653 recognitionPlaceholder : PropTypes . string ,
@@ -679,6 +684,7 @@ ChatBot.defaultProps = {
679684 inputStyle : { } ,
680685 opened : undefined ,
681686 placeholder : 'Type the message ...' ,
687+ inputAttributes : { } ,
682688 recognitionEnable : false ,
683689 recognitionLang : 'en' ,
684690 recognitionPlaceholder : 'Listening ...' ,
0 commit comments