Skip to content

fix: remove stale flatpickr DatePicker workarounds#22004

Merged
riddhybansal merged 1 commit into
carbon-design-system:mainfrom
adamalston:n/a-flatpickr
Apr 28, 2026
Merged

fix: remove stale flatpickr DatePicker workarounds#22004
riddhybansal merged 1 commit into
carbon-design-system:mainfrom
adamalston:n/a-flatpickr

Conversation

@adamalston

Copy link
Copy Markdown
Contributor

No issue. #21836 (comment)

Removed stale flatpickr DatePicker workarounds.

Changelog

Removed

  • Removed stale flatpickr DatePicker workarounds.

Testing / Reviewing

Existing tests should cover these changes.

I deleted the flatpickr/flatpickr#1958 references from packages/web-components/src/components/date-picker/range-plugin.ts. That file does not appear to override the upstream rangePlugin logic tied to _prevDates, _secondInputFocused, onChange, or onValueUpdate, which is where the flatpickr/flatpickr#1958 behavior lives. The current wrapper only:

  • Positions the calendar relative to the start input.
  • Commits manual range input values on blur when allowInput is enabled.
  • Treats shadow DOM inputs as ignored focus elements.

Keeping the flatpickr/flatpickr#1958 reference would imply that the file fixes behavior it does not currently change. Let me know if I'm missing something.

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
  • Updated documentation and storybook examples
  • Wrote passing tests that cover this change
  • Addressed any impact on accessibility (a11y)
  • Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request guide

@netlify

netlify Bot commented Apr 11, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 32b5648
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69da734e2bf90a00089fb0ed
😎 Deploy Preview https://deploy-preview-22004--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Apr 11, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 32b5648
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69da734e689274000708a2a2
😎 Deploy Preview https://deploy-preview-22004--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Apr 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.93%. Comparing base (597001a) to head (32b5648).
⚠️ Report is 74 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22004      +/-   ##
==========================================
+ Coverage   94.90%   94.93%   +0.02%     
==========================================
  Files         541      541              
  Lines       45253    45238      -15     
  Branches     6359     6388      +29     
==========================================
- Hits        42949    42945       -4     
+ Misses       2172     2161      -11     
  Partials      132      132              
Flag Coverage Δ
main-packages 89.16% <ø> (ø)
web-components 97.70% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@heloiselui heloiselui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@riddhybansal riddhybansal added this pull request to the merge queue Apr 28, 2026
Merged via the queue into carbon-design-system:main with commit 48a45d1 Apr 28, 2026
55 checks passed
@adamalston adamalston deleted the n/a-flatpickr branch April 29, 2026 01:32
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.

3 participants