Skip to content

Commit

Permalink
Fix styling issue in RawInput component
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Mar 21, 2024
1 parent f13ed7f commit 0dd73ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ui/blocks/src/controls/Object.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const RawButton = styled(IconButton)(({ theme }) => ({
},
}));

const RawInput = styled(Form.Textarea)(({ theme, readOnly }) => ({
const RawInput = styled(Form.Textarea)(({ theme }) => ({
flex: 1,
padding: '7px 6px',
fontFamily: theme.typography.fonts.mono,
Expand Down Expand Up @@ -314,7 +314,7 @@ export const ObjectControl: FC<ObjectProps> = ({ name, value, onChange, argType
)}
{!showRaw ? (
<JsonTree
readOnly={!isObjectOrArray || readonly}
readOnly={readonly || !isObjectOrArray}
isCollapsed={isObjectOrArray ? /* default value */ undefined : () => true}
data={data}
rootName={name}
Expand Down

0 comments on commit 0dd73ea

Please sign in to comment.