From 44253ca762036bb0ce72f1ac2a66fec924dbb558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20N=C3=B6sberger?= Date: Wed, 20 Aug 2025 13:04:37 +0200 Subject: [PATCH] Use formik 'FastField' instead of 'Field' for performance reasons On an Opencast system with a large number of series (>4,000), entering text in the create or edit event dialogue box is slow. Using the formik 'FastField' instead of 'Field' improves the performance. Fixes https://github.com/opencast/opencast-admin-interface/issues/1406 --- src/components/shared/Field.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/shared/Field.tsx b/src/components/shared/Field.tsx index 5712c51a44..fccf3e1375 100644 --- a/src/components/shared/Field.tsx +++ b/src/components/shared/Field.tsx @@ -1,4 +1,4 @@ -import { Field as FormikField } from "formik"; +import { FastField as FormikFastField } from "formik"; import { FieldAttributes } from "formik/dist/Field"; /** @@ -6,7 +6,7 @@ import { FieldAttributes } from "formik/dist/Field"; */ export const Field = (props: FieldAttributes) => { return ( - { // Handler for basic html inputs to remove focus, if no custom component is passed