Add target kind check in viewport-host.ts
This commit is contained in:
@@ -3282,6 +3282,7 @@ export class ViewportHost {
|
||||
|
||||
if (
|
||||
activeTransformSession.kind !== "active" ||
|
||||
activeTransformSession.target.kind !== "pathPoint" ||
|
||||
activeTransformSession.preview.kind !== "pathPoint" ||
|
||||
this.currentDocument === null
|
||||
) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
|
||||
import { fireEvent, render, waitFor } from "@testing-library/react";
|
||||
import { act } from "react";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user