Skip to content

Commit

Permalink
fix(date-picker): range mode clearing first value (carbon-design-syst…
Browse files Browse the repository at this point in the history
…em#10168)

### Related Ticket(s)

carbon-design-system#10088 

### Description

When a user clicked a range of calendar dates the first date would get cleared after clicking the second date.

Before:
![Feb-27-2023 10-24-46](https://user-images.githubusercontent.com/20210594/221636241-e2af785f-9936-4a07-93a0-d98d5bef9b3a.gif)

After:
![Feb-27-2023 10-22-48](https://user-images.githubusercontent.com/20210594/221635393-12029349-9683-4229-9898-b0daa4668da6.gif)

### Changelog

**Changed**

- downgraded flatpick to 4.6.9 ( the issue starts to appear in version 4.6.10)


<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
ariellalgilmore authored Feb 28, 2023
1 parent 69ceb82 commit 0f76149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/carbon-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"dependencies": {
"@babel/runtime": "^7.16.3",
"carbon-components": "10.58.3",
"flatpickr": "4.6.13",
"flatpickr": "4.6.9",
"lit-element": "^2.5.1",
"lit-html": "^1.4.1",
"lodash-es": "^4.17.21"
Expand Down

0 comments on commit 0f76149

Please sign in to comment.