Fix: Ctrl + C not working on tooltips
This commit is contained in:
parent
02ffc81538
commit
2d737a9fa5
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ export default function Page({
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleCopy(e: KeyboardEvent) {
|
function handleCopy(e: KeyboardEvent) {
|
||||||
if (!isWrappedWithClass(e, "nocopy")) {
|
if (!isWrappedWithClass(e, "nocopy") && isWrappedWithClass(e, "react-flow__node")) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
(e as unknown as Event).stopImmediatePropagation();
|
(e as unknown as Event).stopImmediatePropagation();
|
||||||
if (window.getSelection()?.toString().length === 0 && lastSelection) {
|
if (window.getSelection()?.toString().length === 0 && lastSelection) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue