From 4bd46b055f9084f24ab83fb379c1915fef270e79 Mon Sep 17 00:00:00 2001 From: Drew Regitsky Date: Tue, 29 Dec 2015 14:57:07 -0800 Subject: [PATCH] fix(contenteditable): revert 36b4f3, call onClick in mouse-service --- src/components/contenteditable/contenteditable.cjsx | 4 ---- src/components/contenteditable/mouse-service.coffee | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/contenteditable/contenteditable.cjsx b/src/components/contenteditable/contenteditable.cjsx index 391e48f54..b9ec09a46 100644 --- a/src/components/contenteditable/contenteditable.cjsx +++ b/src/components/contenteditable/contenteditable.cjsx @@ -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. diff --git a/src/components/contenteditable/mouse-service.coffee b/src/components/contenteditable/mouse-service.coffee index 3eb2912ba..3ba35c2b2 100644 --- a/src/components/contenteditable/mouse-service.coffee +++ b/src/components/contenteditable/mouse-service.coffee @@ -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) =>