aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
authoralyssaf16 <alyssa_feinberg@brown.edu>2024-06-13 14:37:37 -0400
committeralyssaf16 <alyssa_feinberg@brown.edu>2024-06-13 14:37:37 -0400
commit91e465c9ba542b637e66c7091c444a44fdbe4f0c (patch)
tree529c8599dbb0cd1d31472293863d970d59a10319 /src/client/views/pdf/PDFViewer.tsx
parent39784e909c68f139bb537151294d8db56d021158 (diff)
create flashcard stack and ui fixes
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 92f890e70..af7a5774d 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -464,6 +464,7 @@ export class PDFViewer extends ObservableReactComponent<IViewerProps> {
this._mainCont.current!.style.transform = '';
}
this._selectionContent = selRange.cloneContents();
+
this._selectionText = this._selectionContent?.textContent || '';
// clear selection