mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-12 19:23:13 +08:00
fix(contenteditable): revert 36b4f3, call onClick in mouse-service
This commit is contained in:
parent
9dfb03727d
commit
4bd46b055f
2 changed files with 1 additions and 5 deletions
|
@ -195,7 +195,6 @@ class Contenteditable extends React.Component
|
|||
onBlur: @_onBlur
|
||||
onFocus: @_onFocus
|
||||
onKeyDown: @_onKeyDown
|
||||
onClick: @_onClick
|
||||
onCompositionEnd: @_onCompositionEnd
|
||||
onCompositionStart: @_onCompositionStart
|
||||
return handlers
|
||||
|
@ -276,9 +275,6 @@ class Contenteditable extends React.Component
|
|||
_onKeyDown: (event) =>
|
||||
@dispatchEventToExtensions("onKeyDown", event)
|
||||
|
||||
_onClick: (event) =>
|
||||
@dispatchEventToExtensions("onClick", event)
|
||||
|
||||
# We must set the `inCompositionEvent` flag in addition to tearing down
|
||||
# the selecton listeners. While the composition event is in progress, we
|
||||
# want to ignore any input events we get.
|
||||
|
|
|
@ -66,7 +66,7 @@ class MouseService extends ContenteditableService
|
|||
selection = document.getSelection()
|
||||
return event unless DOMUtils.selectionInScope(selection, editableNode)
|
||||
|
||||
# @dispatchEventToExtensions("onClick", event)
|
||||
@dispatchEventToExtensions("onClick", event)
|
||||
return event
|
||||
|
||||
_onDragStart: (event) =>
|
||||
|
|
Loading…
Reference in a new issue