Skip to content

Commit dbec9f1

Browse files
Sallvainianclaude
andcommitted
fix: resolve TypeScript build errors in FloatingPromptInput
- Add explicit type annotation to drag-drop event handler - Remove unused IME composition handler functions - Update bun.lock with new optional dependencies These fixes allow the build to complete successfully after merging PR winfunc#365. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f039029 commit dbec9f1

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

bun.lock

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/FloatingPromptInput.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ const FloatingPromptInputInner = (
411411
}
412412

413413
const webview = getCurrentWebviewWindow();
414-
unlistenDragDropRef.current = await webview.onDragDropEvent((event) => {
414+
unlistenDragDropRef.current = await webview.onDragDropEvent((event: any) => {
415415
if (event.payload.type === "enter" || event.payload.type === "over") {
416416
setDragActive(true);
417417
} else if (event.payload.type === "leave") {
@@ -722,16 +722,6 @@ const FloatingPromptInputInner = (
722722
}, 0);
723723
};
724724

725-
const handleCompositionStart = () => {
726-
isIMEComposingRef.current = true;
727-
};
728-
729-
const handleCompositionEnd = () => {
730-
setTimeout(() => {
731-
isIMEComposingRef.current = false;
732-
}, 0);
733-
};
734-
735725
const isIMEInteraction = (event?: React.KeyboardEvent) => {
736726
if (isIMEComposingRef.current) {
737727
return true;

0 commit comments

Comments
 (0)