mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
fix(contenteditable): hook up onClick handler for extensions
Summary: Add missing code to make onClick work in contenteditable extensions. Test Plan: manual Reviewers: juan, evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2395
This commit is contained in:
parent
30c5e20e88
commit
36b4f3f456
1 changed files with 4 additions and 0 deletions
|
@ -195,6 +195,7 @@ class Contenteditable extends React.Component
|
|||
onBlur: @_onBlur
|
||||
onFocus: @_onFocus
|
||||
onKeyDown: @_onKeyDown
|
||||
onClick: @_onClick
|
||||
onCompositionEnd: @_onCompositionEnd
|
||||
onCompositionStart: @_onCompositionStart
|
||||
return handlers
|
||||
|
@ -275,6 +276,9 @@ 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.
|
||||
|
|
Loading…
Reference in a new issue