diff options
| author | bobzel <zzzman@gmail.com> | 2023-08-26 15:52:04 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-08-26 15:52:04 -0400 |
| commit | 8f43a98c363ff541070b100a2d4e10e505df6969 (patch) | |
| tree | d7bd88f2c2d44e7eb6d9f1b102923b47617cb169 /src/client/views/collections/TabDocView.tsx | |
| parent | 2c46608d3207a8463907b0e1904d9b3026d6d1c8 (diff) | |
| parent | 603e437d4964c2f104a04f4f977802e241347344 (diff) | |
Merge branch 'master' into UI_Update_Eric_Ma
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index ea473d5cf..f379d09ff 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -137,7 +137,11 @@ export class TabDocView extends React.Component<TabDocViewProps> { setupMoveUpEvents( this, e, - e => !e.defaultPrevented && DragManager.StartDocumentDrag([iconWrap], new DragManager.DocumentDragData([doc], doc.dropAction as dropActionType), e.clientX, e.clientY), + e => + !e.defaultPrevented && + DragManager.StartDocumentDrag([iconWrap], new DragManager.DocumentDragData([doc], doc.dropAction as dropActionType), e.clientX, e.clientY, undefined, () => { + CollectionDockingView.CloseSplit(doc); + }), returnFalse, action(e => { if (this.view) { |
