fix(contenteditable): revert 36b4f3, call onClick in mouse-service

This commit is contained in:
Drew Regitsky 2015-12-29 14:57:07 -08:00
parent 9dfb03727d
commit 4bd46b055f
2 changed files with 1 additions and 5 deletions

View file

@ -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.

View file

@ -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) =>