Skip to content

fix: eslint require-default-props error blocking build#23

Merged
bhavananarayanan merged 1 commit into
release/est/tjk/0.9.7from
fix/dropzone-eslint-require-default-props
Jun 29, 2026
Merged

fix: eslint require-default-props error blocking build#23
bhavananarayanan merged 1 commit into
release/est/tjk/0.9.7from
fix/dropzone-eslint-require-default-props

Conversation

@gqcorneby

@gqcorneby gqcorneby commented Jun 26, 2026

Copy link
Copy Markdown

✨ Description of Change

Description:

A single eslint error was breaking the build gate on release/est/tjk/0.9.7 (the same class of failure as #10 and #12):

  • src/js/components/form-elements/v2/DropzoneFileSelect.jsx declared onChange as an optional prop (called via onChange?.()), but it had no defaultProps entry, which airbnb's react/require-default-props rule treats as an error and fails npm run lint. Introduced with the dropzone input-fallback change (EST: fix document upload on input-fallback browsers (react-dropzone v14) #22).
  • Added a no-op onChange: () => {} default to clear it. No behaviour change — the call site already guards with optional chaining.

Verified the full gate after the fix: npm run lint (0 errors), full Jest suite (all green), Groovy compile (all source sets), and the production npm run bundle (no errors).

DropzoneFileSelect declares onChange as an optional prop (called via
onChange?.()) but had no defaultProps entry, which airbnb's
react/require-default-props flags as an error and fails the eslint
build gate. Add a no-op default to clear it.
@bhavananarayanan bhavananarayanan merged commit 0ca0a70 into release/est/tjk/0.9.7 Jun 29, 2026
@bhavananarayanan bhavananarayanan deleted the fix/dropzone-eslint-require-default-props branch June 29, 2026 06:15
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