Skip to content

fix(Field): pass isDisabled to CodeEditor - #3457

Merged
mfal merged 2 commits into
nextfrom
fix/field-codeeditor-isdisabled
Oct 12, 2026
Merged

mfal merged 2 commits into
nextfrom
fix/field-codeeditor-isdisabled

Conversation

@mfal

@mfal mfal commented Oct 12, 2026

Copy link
Copy Markdown
Member

Fixes the red test:compile components on next (TS2578 "Unused '@ts-expect-error' directive" in Field.browser.test.tsx).

CodeEditor supports isDisabled since #3369. It reached next with the main→next forward-merge 88b2478, and that fired the tripwire #3379 added for exactly this case. This PR does what the tripwire asks:

  • Field.tsx: drop the ignoredIsDisabled/codeEditorFieldProps workaround and pass CodeEditor: fieldProps.
  • Field.browser.test.tsx: delete "disabled Field does not pass isDisabled to CodeEditor" and the tripwire test, drop the CodeEditorProps import, and cover CodeEditor in disabledFields.

Only next is affected: main has no CodeEditor.isDisabled, so its workaround and tripwire are still valid there.

The same commit (4f1c7fe) is already on #3324 (feat/skeleton-mode-content). This PR unblocks next without waiting for that one. Once this merges, the commit drops out of #3324 on its next merge of next.

Verified locally:

  • pnpm nx test:compile components passes.
  • pnpm nx test:browser components -- --browser.name=webkit src/integrations/react-hook-form/components/Field passes 38/38.

🤖 Generated with Claude Code

CodeEditor supports isDisabled since #3369, so the unused
@ts-expect-error tripwire in Field.browser.test.tsx failed test:compile
(TS2578). Do what it asked: give CodeEditor the full fieldProps, drop the
workaround test and cover CodeEditor in disabledFields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mfal mfal self-assigned this Oct 12, 2026
@mfal
mfal marked this pull request as ready for review October 12, 2026 10:26
@mfal
mfal requested a review from a team October 12, 2026 10:26
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview Deployment

Preview environments are ready:

Type URL
docs pr-3457.docs.review.flow-components.de
storybook pr-3457.storybook.review.flow-components.de

Images:

  • docs: ghcr.io/mittwald/flow/docs:pr-3457
  • storybook: ghcr.io/mittwald/flow/storybook:pr-3457

@mfal
mfal merged commit faa2216 into next Oct 12, 2026
33 of 34 checks passed
@mfal
mfal deleted the fix/field-codeeditor-isdisabled branch October 12, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants