mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(composer): fix bluring in contenteditable
This commit is contained in:
parent
6e31a8b327
commit
8f29b4e823
1 changed files with 2 additions and 4 deletions
|
@ -448,13 +448,11 @@ class ContenteditableComponent extends React.Component
|
|||
else return false
|
||||
|
||||
_onBlur: (event) =>
|
||||
# console.log "On Blur Contenteditable"
|
||||
@setInnerState dragging: false
|
||||
# The delay here is necessary to see if the blur was caused by us
|
||||
# navigating to the toolbar and focusing on the set-url input.
|
||||
_.delay =>
|
||||
@setInnerState editableFocused: false
|
||||
, 50
|
||||
return if @_editableNode().parentElement.contains event.relatedTarget
|
||||
@setInnerState editableFocused: false
|
||||
|
||||
_onFocus: (event) =>
|
||||
@setInnerState editableFocused: true
|
||||
|
|
Loading…
Reference in a new issue