mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +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
|
else return false
|
||||||
|
|
||||||
_onBlur: (event) =>
|
_onBlur: (event) =>
|
||||||
# console.log "On Blur Contenteditable"
|
|
||||||
@setInnerState dragging: false
|
@setInnerState dragging: false
|
||||||
# The delay here is necessary to see if the blur was caused by us
|
# 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.
|
# navigating to the toolbar and focusing on the set-url input.
|
||||||
_.delay =>
|
return if @_editableNode().parentElement.contains event.relatedTarget
|
||||||
@setInnerState editableFocused: false
|
@setInnerState editableFocused: false
|
||||||
, 50
|
|
||||||
|
|
||||||
_onFocus: (event) =>
|
_onFocus: (event) =>
|
||||||
@setInnerState editableFocused: true
|
@setInnerState editableFocused: true
|
||||||
|
|
Loading…
Reference in a new issue