@@ -36,7 +36,7 @@ const renderRecipientTo = props => (
3636 < div className = "recipient-content" >
3737 < span className = "recipient-input-label" > To:</ span >
3838 < TagsInput
39- addKeys = { [ 9 , 13 , 32 , 186 , 188 ] }
39+ addKeys = { [ 9 , 13 , 32 , 188 ] }
4040 addOnBlur = { true }
4141 addOnPaste = { true }
4242 className = "recipient-tags"
@@ -47,8 +47,10 @@ const renderRecipientTo = props => (
4747 placeholder : '' ,
4848 name : 'To'
4949 } }
50+ inputValue = { props . inputToValue }
5051 onlyUnique = { true }
5152 onChange = { props . onChangeToTag }
53+ onChangeInput = { props . onChangeToInput }
5254 onValidationReject = { props . handleOnValidationRejectToTag }
5355 pasteSplit = { pasteSplit }
5456 renderInput = { AutocompleteWrapper }
@@ -66,7 +68,7 @@ const renderRecipientCc = props => (
6668 < div className = "recipient-content" >
6769 < span className = "recipient-input-label" > Cc:</ span >
6870 < TagsInput
69- addKeys = { [ 9 , 13 , 32 , 186 , 188 ] }
71+ addKeys = { [ 9 , 13 , 32 , 188 ] }
7072 addOnBlur = { true }
7173 addOnPaste = { true }
7274 className = "recipient-tags"
@@ -76,7 +78,9 @@ const renderRecipientCc = props => (
7678 placeholder : '' ,
7779 name : 'Cc'
7880 } }
81+ inputValue = { props . inputCcValue }
7982 onChange = { props . onChangeCcTag }
83+ onChangeInput = { props . onChangeCcInput }
8084 onlyUnique = { true }
8185 onValidationReject = { props . handleOnValidationRejectCcTag }
8286 pasteSplit = { pasteSplit }
@@ -95,7 +99,7 @@ const renderRecipientBcc = props => (
9599 < div className = "recipient-content" >
96100 < span className = "recipient-input-label" > Bcc:</ span >
97101 < TagsInput
98- addKeys = { [ 9 , 13 , 32 , 186 , 188 ] }
102+ addKeys = { [ 9 , 13 , 32 , 188 ] }
99103 addOnBlur = { true }
100104 addOnPaste = { true }
101105 className = "recipient-tags"
@@ -105,7 +109,9 @@ const renderRecipientBcc = props => (
105109 placeholder : '' ,
106110 name : 'Bcc'
107111 } }
112+ inputValue = { props . inputBccValue }
108113 onChange = { props . onChangeBccTag }
114+ onChangeInput = { props . onChangeBccInput }
109115 onlyUnique = { true }
110116 onValidationReject = { props . handleOnValidationRejectBccTag }
111117 pasteSplit = { pasteSplit }
@@ -129,7 +135,9 @@ Recipient.propTypes = {
129135renderRecipientTo . propTypes = {
130136 checkDisableSendButton : PropTypes . func ,
131137 handleOnValidationRejectToTag : PropTypes . func ,
138+ inputToValue : PropTypes . string ,
132139 isFocusEditorInput : PropTypes . bool ,
140+ onChangeToInput : PropTypes . func ,
133141 onChangeToTag : PropTypes . func ,
134142 toTags : PropTypes . string
135143} ;
@@ -138,13 +146,17 @@ renderRecipientCc.propTypes = {
138146 ccTags : PropTypes . string ,
139147 checkDisableSendButton : PropTypes . func ,
140148 handleOnValidationRejectCcTag : PropTypes . func ,
149+ inputCcValue : PropTypes . string ,
150+ onChangeCcInput : PropTypes . func ,
141151 onChangeCcTag : PropTypes . func
142152} ;
143153
144154renderRecipientBcc . propTypes = {
145155 bccTags : PropTypes . string ,
146156 checkDisableSendButton : PropTypes . func ,
147157 handleOnValidationRejectBccTag : PropTypes . func ,
158+ inputBccValue : PropTypes . string ,
159+ onChangeBccInput : PropTypes . func ,
148160 onChangeBccTag : PropTypes . func
149161} ;
150162
0 commit comments