mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-14 01:04:18 +08:00
fix(composer): Focus last element, not just text node
This commit is contained in:
parent
d06b235edf
commit
893e26dfc6
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ class ComposerEditor extends Component {
|
|||
// quoted text that is visible. (as in forwarded messages.)
|
||||
//
|
||||
this.refs.contenteditable.atomicEdit( ({editor})=> {
|
||||
const walker = document.createTreeWalker(editor.rootNode, NodeFilter.SHOW_TEXT);
|
||||
const walker = document.createTreeWalker(editor.rootNode, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT);
|
||||
const nodesBelowUserBody = editor.rootNode.querySelectorAll('.nylas-n1-signature, .gmail_quote, blockquote');
|
||||
|
||||
let lastNode = null;
|
||||
|
|
Loading…
Reference in a new issue