We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32ff46e + d8af1be commit 715715eCopy full SHA for 715715e
CHANGELOG.md
electron_app/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "criptext",
3
- "version": "0.11.3",
+ "version": "0.11.4",
4
"author": {
5
"name": "Criptext Inc.",
6
"email": "[email protected]",
email_composer/src/components/Autocomplete.js
@@ -25,7 +25,10 @@ class Autocomplete extends Component {
25
26
componentDidMount() {
27
const inputName = this.props.inputProps.name;
28
- if (inputName === 'To') {
+ if (
29
+ inputName === 'To' &&
30
+ this.props.inputProps.isfocuseditorinput === 'false'
31
+ ) {
32
this.autosuggest.input.focus();
33
}
34
email_composer/src/components/AutocompleteWrapper.js
@@ -88,6 +88,7 @@ const AutocompleteWrapper = ({ addTag, ...props }) => {
88
89
AutocompleteWrapper.propTypes = {
90
addTag: PropTypes.func,
91
+ isfocuseditorinput: PropTypes.bool,
92
onChange: PropTypes.func,
93
value: PropTypes.object
94
};
email_composer/src/components/Body.js
@@ -12,6 +12,7 @@ const Body = props => (
12
getHtmlBody={props.getHtmlBody}
13
htmlBody={props.htmlBody}
14
isDragActive={props.isDragActive}
15
+ isFocusEditorInput={props.isFocusEditorInput}
16
isToolbarHidden={props.isToolbarHidden}
17
onClearFile={props.onClearFile}
18
onDragLeave={props.handleDragLeave}
@@ -40,6 +41,7 @@ Body.propTypes = {
40
41
handleDragOver: PropTypes.func,
42
htmlBody: PropTypes.object,
43
isDragActive: PropTypes.bool,
44
+ isFocusEditorInput: PropTypes.bool,
45
isToolbarHidden: PropTypes.bool,
46
onClearFile: PropTypes.func,
47
onClickDiscardDraft: PropTypes.func,
email_composer/src/components/BodyWrapper.js
@@ -16,6 +16,7 @@ class BodyWrapper extends Component {
{...this.props}
getHtmlBody={this.props.getHtmlBody}
htmlBody={this.props.htmlBody}
19
+ isFocusEditorInput={this.props.isFocusEditorInput}
20
isToolbarHidden={this.state.isToolbarHidden}
21
onClickTextEditor={this.handleTextEditor}
22
onDrop={this.props.onDrop}
@@ -32,6 +33,7 @@ class BodyWrapper extends Component {
BodyWrapper.propTypes = {
getHtmlBody: PropTypes.func,
35
36
37
onDrop: PropTypes.func,
38
onFocusTextEditor: PropTypes.func
39
email_composer/src/components/Composer.js
@@ -18,6 +18,7 @@ const Composer = props => (
getCcEmails={props.getCcEmails}
getBccEmails={props.getBccEmails}
isCollapsedMoreRecipient={props.isCollapsedMoreRecipient}
onToggleRecipient={props.onToggleRecipient}
23
/>
24
<SubjectWrapper
@@ -33,6 +34,7 @@ const Composer = props => (
handleDragOver={props.handleDragOver}
onClickDiscardDraft={props.onClickDiscardDraft}
onClickSendMessage={props.onClickSendMessage}
@@ -77,6 +79,7 @@ Composer.propTypes = {
77
79
78
80
isCollapsedMoreRecipient: PropTypes.bool,
81
82
83
onClickCancelSendMessage: PropTypes.func,
84
85
email_composer/src/components/DropfileField.js
@@ -15,6 +15,7 @@ const DropfileField = props => (
>
<EditorWrapper
toolbarHidden={props.isToolbarHidden}
blockRenderMap={props.blockRenderMap}
@@ -74,6 +75,7 @@ DropfileField.propTypes = {
74
75
76
multiple: PropTypes.bool,
email_composer/src/components/EditorWrapper.js
@@ -8,6 +8,9 @@ class EditorWrapper extends Component {
8
return (
9
<Editor
10
11
+ ref={editor => {
+ this.editor = editor;
+ }}
toolbar={{
options: [
'inline',
@@ -38,6 +41,12 @@ class EditorWrapper extends Component {
);
+ componentDidMount() {
+ if (this.props.isFocusEditorInput) {
+ this.editor.focusEditor();
+ }
48
49
+
50
onChangeHtmlBody = html => {
51
this.props.getHtmlBody(html);
52
@@ -51,6 +60,7 @@ EditorWrapper.propTypes = {
60
blockRenderMap: PropTypes.object,
61
53
62
63
54
64
55
65
56
66
email_composer/src/components/Recipient.js
@@ -43,6 +43,7 @@ const renderRecipientTo = props => (
focusedClassName={'cstm-tags-border'}
inputProps={{
className: 'tags-input',
+ isfocuseditorinput: props.isFocusEditorInput ? 'true' : 'false',
placeholder: '',
name: 'To'
}}
@@ -121,12 +122,14 @@ const renderRecipientBcc = props => (
121
122
123
Recipient.propTypes = {
124
125
126
onToggleRecipient: PropTypes.func
127
128
129
renderRecipientTo.propTypes = {
130
checkDisableSendButton: PropTypes.func,
131
handleOnValidationRejectToTag: PropTypes.func,
132
133
onChangeToTag: PropTypes.func,
134
toTags: PropTypes.string
135
0 commit comments