diff options
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/editor.js b/program/js/editor.js index 85cf68a4d..d3e587b75 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -68,7 +68,7 @@ function rcmail_editor_callback() if (elem && elem.type=='select-one') { rcmail.change_identity(elem); // Focus previously focused element - if (rcmail.env.compose_focus_elem.id != rcmail.env.composebody) + if (rcmail.env.compose_focus_elem && rcmail.env.compose_focus_elem.id != rcmail.env.composebody) rcmail.env.compose_focus_elem.focus(); } // set tabIndex and set focus to element that was focused before |