mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: cursor being leaked outside of canvas (#3161)
This commit is contained in:
parent
f295ba98c5
commit
c77c9ce65a
8 changed files with 69 additions and 52 deletions
|
@ -1,6 +1,5 @@
|
|||
import React from "react";
|
||||
import * as Sentry from "@sentry/browser";
|
||||
import { resetCursor } from "../utils";
|
||||
import { t } from "../i18n";
|
||||
|
||||
interface TopErrorBoundaryState {
|
||||
|
@ -24,7 +23,6 @@ export class TopErrorBoundary extends React.Component<
|
|||
}
|
||||
|
||||
componentDidCatch(error: Error, errorInfo: any) {
|
||||
resetCursor();
|
||||
const _localStorage: any = {};
|
||||
for (const [key, value] of Object.entries({ ...localStorage })) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue