Skip to content

Commit bf5ed1a

Browse files
chore
1 parent 304dd37 commit bf5ed1a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

editor/grida-canvas-react/use-data-transfer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export function useDataTransferEventTarget() {
203203

204204
if (!event.clipboardData) {
205205
instance.commands.paste();
206+
event.preventDefault();
206207
return;
207208
}
208209

editor/grida-canvas/reducers/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export default function reducer(
5656
draft.webfontlist = action.webfontlist;
5757
return;
5858
}
59+
case "document/reset": {
60+
// Special marker action - already handled by reset() method
61+
// This should never actually reach the reducer, but handle it gracefully
62+
return;
63+
}
5964
case "load": {
6065
const { scene } = action;
6166

0 commit comments

Comments
 (0)