@bobfrankston/rmfmail 1.2.300 → 1.2.302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.commitmsg +49 -41
- package/client/android-bootstrap.bundle.js +60 -9
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/client/compose/compose.bundle.js +3 -3
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +24 -6
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +22 -4
- package/npmchanges.md +76 -0
- package/package.json +6 -6
- package/packages/mailx-store-web/package.json +1 -1
- package/packages/mailx-store-web/web-service.d.ts +24 -2
- package/packages/mailx-store-web/web-service.d.ts.map +1 -1
- package/packages/mailx-store-web/web-service.js +81 -11
- package/packages/mailx-store-web/web-service.js.map +1 -1
- package/packages/mailx-store-web/web-service.ts +79 -11
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-63828 → node_modules.npmglobalize-stash-54400}/.package-lock.json +0 -0
|
@@ -6191,9 +6191,10 @@ function applyInit(init) {
|
|
|
6191
6191
|
bodyToRender = isReplyForward ? `<br>${sigBlock}<br>${bodyToRender}` : `${bodyToRender}${sigBlock}`;
|
|
6192
6192
|
}
|
|
6193
6193
|
}
|
|
6194
|
+
const focusTarget = !toInput.value ? toInput : !subjectInput.value ? subjectInput : null;
|
|
6194
6195
|
if (bodyToRender) {
|
|
6195
6196
|
editor.setHtml(bodyToRender);
|
|
6196
|
-
editor.setCursor(0);
|
|
6197
|
+
if (!focusTarget) editor.setCursor(0);
|
|
6197
6198
|
}
|
|
6198
6199
|
if (init.draftUid) {
|
|
6199
6200
|
draftUid = init.draftUid;
|
|
@@ -6214,8 +6215,7 @@ function applyInit(init) {
|
|
|
6214
6215
|
renderAttachmentChips();
|
|
6215
6216
|
}
|
|
6216
6217
|
setComposeTitle(init.subject || "");
|
|
6217
|
-
if (
|
|
6218
|
-
else if (!subjectInput.value) subjectInput.focus();
|
|
6218
|
+
if (focusTarget) focusTarget.focus();
|
|
6219
6219
|
else editor.focus();
|
|
6220
6220
|
recordContentBaseline();
|
|
6221
6221
|
if (init.draftUid && init.draftId) {
|