mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-19 01:15:04 -05:00
Fixed an issue in the query tool where using multiple cursors to copy text resulted in only the first line being copied. #8691
This commit is contained in:
@@ -110,7 +110,7 @@ export default function CodeMirror({className, currEditor, showCopyBtn=false, cu
|
||||
if (!onTextSelect) return;
|
||||
|
||||
const handleSelection = () => {
|
||||
const selectedText = window.getSelection().toString();
|
||||
const selectedText = editor.current?.getSelection();
|
||||
if (selectedText) {
|
||||
onTextSelect(selectedText);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user