Skip to content

Commit

Permalink
fix(form-builder): show presence for readOnly fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Jun 7, 2021
1 parent 86fa23e commit 608f504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/form-builder/src/FormBuilderInput.tsx
Expand Up @@ -253,7 +253,7 @@ function FormBuilderInputInner(props: FormBuilderInputInnerProps & Props) {
const presence = presenceProp || context.presence

const childPresenceInfo = useMemo(() => {
if (readOnly || !presence || presence.length === 0) {
if (!presence || presence.length === 0) {
return EMPTY_PRESENCE
}

Expand Down

0 comments on commit 608f504

Please sign in to comment.