mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
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:
parent
c85c8d04b7
commit
6a4b407cb0
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue