mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(contenteditable): Fix undefined callback on plugins
This commit is contained in:
parent
02deba38c4
commit
0be43f33c9
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ class Contenteditable extends React.Component
|
|||
_runPluginHandlersForEvent: (method, event, args...) =>
|
||||
executeCallback = (plugin) =>
|
||||
return if not plugin[method]?
|
||||
callback = callback.bind(plugin)
|
||||
callback = plugin[method].bind(plugin)
|
||||
@atomicEdit(callback, event, args...)
|
||||
|
||||
for plugin in @props.plugins
|
||||
|
|
Loading…
Reference in a new issue