mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(specs): fix contenteditable specs
This commit is contained in:
parent
e018d6a8ec
commit
51288b261a
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class ContenteditableComponent extends React.Component
|
|||
_textContentAtCursor: ->
|
||||
selection = document.getSelection()
|
||||
if selection.isCollapsed
|
||||
return selection.anchorNode.textContent
|
||||
return selection.anchorNode?.textContent
|
||||
else return null
|
||||
|
||||
_runExtensionFilters: ->
|
||||
|
|
Loading…
Reference in a new issue