mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-30 00:16:02 +08:00
Fix account re-ordering via drag and drop #1577
This commit is contained in:
parent
0c2da7a7a4
commit
1d5f3ff4f1
2 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
# N1 Dark UI theme
|
||||
# Mailspring Dark UI theme
|
||||
|
||||
Default dark UI theme for N1.
|
||||
Default dark UI theme for Mailspring.
|
||||
|
||||
This theme is installed by default with N1 and can be activated by going to
|
||||
This theme is installed by default with Mailspring and can be activated by going to
|
||||
the _Themes_ section in the Settings view (`cmd-,`) and selecting it from the
|
||||
_UI Themes_ drop-down menu.
|
||||
|
|
|
@ -298,10 +298,12 @@ class EditableList extends Component<EditableListProps, EditableListState> {
|
|||
event.dataTransfer.setData('editablelist-index', row.dataset.itemIdx);
|
||||
event.dataTransfer.setData(`editablelist-listid:${this.listId}`, 'true');
|
||||
event.dataTransfer.effectAllowed = 'move';
|
||||
event.dataTransfer.dragEffect = 'move';
|
||||
};
|
||||
|
||||
_onDragOver = event => {
|
||||
const wrapperNode = ReactDOM.findDOMNode(this._itemsWrapperEl) as HTMLElement;
|
||||
event.preventDefault();
|
||||
|
||||
// As of Chromium 53, we cannot access the contents of the drag pasteboard
|
||||
// until the user drops for security reasons. Pull the list id from the
|
||||
|
@ -453,7 +455,7 @@ class EditableList extends Component<EditableListProps, EditableListState> {
|
|||
|
||||
_renderDropInsertion = () => {
|
||||
return (
|
||||
<div className="insertion-point">
|
||||
<div className="insertion-point" key="insertion-point">
|
||||
<div />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue