Fix: Ctrl + C not working on tooltips

This commit is contained in:
igorrCarvalho 2024-06-28 01:16:00 -03:00 committed by Gabriel Luiz Freitas Almeida
commit 363ea8895e

View file

@ -228,7 +228,7 @@ export default function Page({
}
function handleCopy(e: KeyboardEvent) {
if (!isWrappedWithClass(e, "nocopy")) {
if (!isWrappedWithClass(e, "nocopy") && isWrappedWithClass(e, "react-flow__node")) {
e.preventDefault();
(e as unknown as Event).stopImmediatePropagation();
if (window.getSelection()?.toString().length === 0 && lastSelection) {