diff options
| author | bobzel <zzzman@gmail.com> | 2024-09-19 10:42:41 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-09-19 10:42:41 -0400 |
| commit | e9167b125a59ff08b5d75691500d80359ebb4d41 (patch) | |
| tree | 5c2c3102f14d8c2c29146c4653a738e9a354d016 /src/client/views/nodes/formattedText | |
| parent | 921ab051bfcaa805cb18f40dfcd189624d83f43a (diff) | |
fixed setting rotation center. fixed not dropping docs onto themselves.
Diffstat (limited to 'src/client/views/nodes/formattedText')
| -rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 343e255dc..7287e2b9f 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -561,7 +561,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB const draggedDoc = dragData.droppedDocuments.lastElement(); let added: Opt<boolean>; const dropAction = dragData.dropAction || dragData.userDropAction; - if ([AclEdit, AclAdmin, AclSelfEdit].includes(effectiveAcl)) { + if ([AclEdit, AclAdmin, AclSelfEdit].includes(effectiveAcl) && !dragData.draggedDocuments.includes(this.Document)) { // replace text contents when dragging with Alt if (de.altKey) { const fieldKey = Doc.LayoutFieldKey(draggedDoc); |
