From f70736f2de07d08bf303d83429b28d44bb451fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Lundg=C3=A5rd?= Date: Wed, 21 Dec 2022 13:16:33 +0100 Subject: [PATCH] fix: pass `readOnly` to select element (#3900) --- packages/sanity/src/core/form/inputs/SelectInput.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/sanity/src/core/form/inputs/SelectInput.tsx b/packages/sanity/src/core/form/inputs/SelectInput.tsx index c11e1d0643c..7ef32ad5910 100644 --- a/packages/sanity/src/core/form/inputs/SelectInput.tsx +++ b/packages/sanity/src/core/form/inputs/SelectInput.tsx @@ -86,12 +86,14 @@ export function SelectInput(props: StringInputProps) { direction={schemaType.options?.direction || 'vertical'} customValidity={validationError} onChange={handleChange} + readOnly={readOnly} /> ) : (