Skip to content

Commit

Permalink
fix(date-picker): range mode clearing first value (#10168)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

#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 f484195 commit fe4d6da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Binary file not shown.
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
9 changes: 1 addition & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,7 @@ __metadata:
expect-playwright: ~0.8.0
expect-puppeteer: ^6.0.0
file-loader: ^6.2.0
flatpickr: 4.6.13
flatpickr: 4.6.9
fs-extra: ^10.0.0
gulp: ^4.0.2
gulp-babel: ^8.0.0
Expand Down Expand Up @@ -16310,13 +16310,6 @@ __metadata:
languageName: node
linkType: hard

"flatpickr@npm:4.6.13":
version: 4.6.13
resolution: "flatpickr@npm:4.6.13"
checksum: 2cca1b8dc974e7673b51174ee3f0679ae3a6b79525a0c53bf49b87455ef358354e64acfd60b312e44cef208aab9750a1a48df32a0914046a53de6d9403742304
languageName: node
linkType: hard

"flatpickr@npm:4.6.9":
version: 4.6.9
resolution: "flatpickr@npm:4.6.9"
Expand Down

0 comments on commit fe4d6da

Please sign in to comment.