diff --git a/src/lib/components/party/edit/YouTubeUrlInput.svelte b/src/lib/components/party/edit/YouTubeUrlInput.svelte index 7301d3bc..aeff77fc 100644 --- a/src/lib/components/party/edit/YouTubeUrlInput.svelte +++ b/src/lib/components/party/edit/YouTubeUrlInput.svelte @@ -5,6 +5,7 @@ * Validates YouTube URLs and shows a thumbnail preview when valid. */ import { untrack } from 'svelte' + import Input from '$lib/components/ui/Input.svelte' interface Props { /** YouTube URL value */ @@ -96,9 +97,8 @@ }) }) - function handleInput(e: Event) { - const target = e.target as HTMLInputElement - inputValue = target.value + function handleInput() { + // inputValue is already updated via bind:value // Update bound value immediately if valid (so Save captures it) if (isValidYouTubeUrl(inputValue)) { const newValue = inputValue.trim() || null @@ -132,33 +132,20 @@