Skip to content

Commit

Permalink
Admin Generator: add fullWidth to the toggle field of `optionalNest…
Browse files Browse the repository at this point in the history
…ed` fields to not lose `fullWidth` for the nested fields (#3305)
  • Loading branch information
MFSepplive authored Feb 3, 2025
1 parent 6ff1d70 commit 4d19da1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/admin/src/products/future/generated/ProductForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export function ProductForm({ id }: FormProps): React.ReactElement {
/>
)}
</Field>
<Field name="dimensionsEnabled" subscription={{ value: true }}>
<Field name="dimensionsEnabled" fullWidth subscription={{ value: true }}>
{({ input: { value } }) =>
value ? (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function generateFormLayout({
/>
)}
</Field>
<Field name="${String(config.name)}Enabled" subscription={{ value: true }}>
<Field name="${String(config.name)}Enabled" fullWidth subscription={{ value: true }}>
{({ input: { value } }) =>
value ? (
<>
Expand Down

0 comments on commit 4d19da1

Please sign in to comment.