Form validation tweaks (#20812)

* Always show ID field when editing a trigger

* 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:18:10 -06:00
committed by GitHub
parent 4638c22c16
commit e1bc7360ad
3 changed files with 5 additions and 2 deletions
@@ -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 ?? "",