fix(composer): Properly setup editing action listeners on update

- This prevented emoji selection via the popover from working on a new
window because the plugin is loaded after the contenteditable sets up
the action listeners, so we need to re set them on update
This commit is contained in:
Juan Tejada 2016-05-04 16:25:42 -07:00
parent c85c8d04b7
commit 6a4b407cb0
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
import React, {Component, PropTypes} from 'react'; import React, {Component, PropTypes} from 'react';
import {ContenteditableExtension, ExtensionRegistry, DOMUtils} from 'nylas-exports'; import {ExtensionRegistry, DOMUtils} from 'nylas-exports';
import {DropZone, ScrollRegion, Contenteditable} from 'nylas-component-kit'; import {DropZone, ScrollRegion, Contenteditable} from 'nylas-component-kit';
/** /**
@ -297,7 +297,6 @@ class ComposerEditor extends Component {
</DropZone> </DropZone>
); );
} }
} }
ComposerEditor.containerRequired = false ComposerEditor.containerRequired = false

View file

@ -158,6 +158,7 @@ class Contenteditable extends React.Component
@_restoreSelection() @_restoreSelection()
@_notifyOfSelectionRestoration() @_notifyOfSelectionRestoration()
@_refreshServices() @_refreshServices()
@_setupEditingActionListeners()
@_mutationObserver.disconnect() @_mutationObserver.disconnect()
@_mutationObserver.observe(@_editableNode(), @_mutationConfig()) @_mutationObserver.observe(@_editableNode(), @_mutationConfig())
@setInnerState editableNode: @_editableNode() @setInnerState editableNode: @_editableNode()