diff --git a/components/InlineItemCreate.tsx b/components/InlineItemCreate.tsx index 74aca76..8cc4221 100644 --- a/components/InlineItemCreate.tsx +++ b/components/InlineItemCreate.tsx @@ -63,6 +63,10 @@ export default function InlineItemCreate({ listId }: InlineItemCreateProps) { const handleCancel = () => { setTitle('') setIsCreating(false) + // Reset zoom on iOS Safari + if (document.activeElement instanceof HTMLElement) { + document.activeElement.blur() + } } const handleKeyDown = (e: React.KeyboardEvent) => { @@ -71,6 +75,11 @@ export default function InlineItemCreate({ listId }: InlineItemCreateProps) { } } + const handleBlur = () => { + // Force viewport reset on iOS Safari + window.scrollTo(0, 0) + } + if (!isCreating) { return (