use onBlur method for form validation

this will prevent the trigger ID from expanding too soon when a user is typing the friendly name
This commit is contained in:
Josh Hawkins 2025-11-05 09:03:50 -06:00
parent b1b7153e2c
commit 5487aa923a

View File

@ -101,7 +101,7 @@ export default function Step1NameAndType({
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
mode: "onChange",
mode: "onBlur",
defaultValues: {
enabled: true,
name: initialData?.name ?? trigger?.name ?? "",