From 6ecfe48643917e5dc774ff39a84c5bef47f0d3b9 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 21 Sep 2020 09:46:09 -0400 Subject: fixed honoring dropAction for documents dragged by their title. --- src/client/views/DocumentDecorations.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 96eba1869..795208c91 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -139,7 +139,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> dragData.offset = dragDocView.props.ScreenToLocalTransform().scale(dragDocView.props.ContentScaling()).transformDirection(e.x - left, e.y - top); dragData.moveDocument = dragDocView.props.moveDocument; dragData.isSelectionMove = true; - dragData.dropAction = dragDocView.props.Document.dropAction as dropActionType; + dragData.dropAction = dragDocView.props.dropAction as dropActionType; this.Interacting = true; this._hidden = true; DragManager.StartDocumentDrag(SelectionManager.SelectedDocuments().map(dv => dv.ContentDiv!), dragData, e.x, e.y, { -- cgit v1.2.3-70-g09d2 From a15ba9360bdb23e593ecc3985954549811cdd852 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 21 Sep 2020 09:52:36 -0400 Subject: closed text box comment box when text box is unmounted. preveted lozenge of which user had edited the box from lingering. --- src/client/views/nodes/formattedText/FormattedTextBox.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index db4bf1086..ff2ce90b7 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1189,6 +1189,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp this.endUndoTypingBatch(); Object.values(this._disposers).forEach(disposer => disposer?.()); this._editorView?.destroy(); + FormattedTextBoxComment.Hide(); } _downEvent: any; -- cgit v1.2.3-70-g09d2