Skip to content

Commit

Permalink
fix(date picker): detect change range interval console error (#11532)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

Closes #11490

### Description

In Date picker element, dev tool console shows error `Uncaught TypeError: fp.getDateStr is not a function`.

### Changelog

**Removed**

- Removed custom event handling function.

<!-- 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
sangeethababu9223 authored Feb 28, 2024
1 parent 92225bb commit eee2c73
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
Binary file not shown.
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 @@ -74,7 +74,7 @@
"@carbon/styles": "1.51.0",
"@floating-ui/dom": "^1.6.3",
"@ibm/telemetry-js": "^1.2.1",
"flatpickr": "4.6.1",
"flatpickr": "4.6.13",
"lit": "^2.7.6",
"lodash-es": "^4.17.21"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export default (config: Config): Plugin => {
fp._hBXCEDatePickerRangePluginOnBlurTo.release();
}
};

return Object.assign(origRangePlugin, {
onReady() {
origOnReady.call(this);
Expand Down
16 changes: 15 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3737,7 +3737,7 @@ __metadata:
expect-playwright: "npm:~0.8.0"
expect-puppeteer: "npm:^6.0.0"
file-loader: "npm:^6.2.0"
flatpickr: "npm:4.6.1"
flatpickr: "npm:4.6.13"
fs-extra: "npm:^10.0.0"
gulp: "npm:^4.0.2"
gulp-babel: "npm:^8.0.0"
Expand Down Expand Up @@ -17427,13 +17427,27 @@ __metadata:
languageName: node
linkType: hard

"flatpickr@npm:4.6.13":
version: 4.6.13
resolution: "flatpickr@npm:4.6.13"
checksum: 10/0e32f2fbd427aa8d838da8fb0cf2e56b65efc22783dcebcc32c11b7fbb6bbc8c3532f9410915f3acb7dc0feebb49202bea03e49cc80b9d4d11b3bdce49488bc0
languageName: node
linkType: hard

"flatpickr@npm:4.6.9":
version: 4.6.9
resolution: "flatpickr@npm:4.6.9"
checksum: 10/0845ef213be9aa48df3c0983e9cea7043e8678eba931d382994e5e8aa07ae2c6d3fead7570d4dcac8e063b53bc489053b9842cd2a771868a280880dfca487a5e
languageName: node
linkType: hard

"flatpickr@patch:flatpickr@npm%3A4.6.13#./.yarn/patches/flatpickr-npm-4.6.13-06399933fc.patch::locator=carbon-for-ibm-dotcom%40workspace%3A.":
version: 4.6.13
resolution: "flatpickr@patch:flatpickr@npm%3A4.6.13#./.yarn/patches/flatpickr-npm-4.6.13-06399933fc.patch::version=4.6.13&hash=45a0af&locator=carbon-for-ibm-dotcom%40workspace%3A."
checksum: 10/720e102d03aa2ac3a4ad4778acdae55c90f49345293621b33a18dce23cb40cc9880853a694b8d92de7cecd7699c447a5609318bf41e25606465321c83840a582
languageName: node
linkType: hard

"flatted@npm:^3.2.7, flatted@npm:^3.2.9":
version: 3.2.9
resolution: "flatted@npm:3.2.9"
Expand Down

0 comments on commit eee2c73

Please sign in to comment.