Skip to content

Commit eee2c73

Browse files
fix(date picker): detect change range interval console error (#11532)
### 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) -->
1 parent 92225bb commit eee2c73

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed
286 KB
Binary file not shown.
286 KB
Binary file not shown.

packages/carbon-web-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@carbon/styles": "1.51.0",
7575
"@floating-ui/dom": "^1.6.3",
7676
"@ibm/telemetry-js": "^1.2.1",
77-
"flatpickr": "4.6.1",
77+
"flatpickr": "4.6.13",
7878
"lit": "^2.7.6",
7979
"lodash-es": "^4.17.21"
8080
},

packages/carbon-web-components/src/components/date-picker/range-plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ export default (config: Config): Plugin => {
105105
fp._hBXCEDatePickerRangePluginOnBlurTo.release();
106106
}
107107
};
108-
109108
return Object.assign(origRangePlugin, {
110109
onReady() {
111110
origOnReady.call(this);

yarn.lock

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3737,7 +3737,7 @@ __metadata:
37373737
expect-playwright: "npm:~0.8.0"
37383738
expect-puppeteer: "npm:^6.0.0"
37393739
file-loader: "npm:^6.2.0"
3740-
flatpickr: "npm:4.6.1"
3740+
flatpickr: "npm:4.6.13"
37413741
fs-extra: "npm:^10.0.0"
37423742
gulp: "npm:^4.0.2"
37433743
gulp-babel: "npm:^8.0.0"
@@ -17427,13 +17427,27 @@ __metadata:
1742717427
languageName: node
1742817428
linkType: hard
1742917429

17430+
"flatpickr@npm:4.6.13":
17431+
version: 4.6.13
17432+
resolution: "flatpickr@npm:4.6.13"
17433+
checksum: 10/0e32f2fbd427aa8d838da8fb0cf2e56b65efc22783dcebcc32c11b7fbb6bbc8c3532f9410915f3acb7dc0feebb49202bea03e49cc80b9d4d11b3bdce49488bc0
17434+
languageName: node
17435+
linkType: hard
17436+
1743017437
"flatpickr@npm:4.6.9":
1743117438
version: 4.6.9
1743217439
resolution: "flatpickr@npm:4.6.9"
1743317440
checksum: 10/0845ef213be9aa48df3c0983e9cea7043e8678eba931d382994e5e8aa07ae2c6d3fead7570d4dcac8e063b53bc489053b9842cd2a771868a280880dfca487a5e
1743417441
languageName: node
1743517442
linkType: hard
1743617443

17444+
"flatpickr@patch:flatpickr@npm%3A4.6.13#./.yarn/patches/flatpickr-npm-4.6.13-06399933fc.patch::locator=carbon-for-ibm-dotcom%40workspace%3A.":
17445+
version: 4.6.13
17446+
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."
17447+
checksum: 10/720e102d03aa2ac3a4ad4778acdae55c90f49345293621b33a18dce23cb40cc9880853a694b8d92de7cecd7699c447a5609318bf41e25606465321c83840a582
17448+
languageName: node
17449+
linkType: hard
17450+
1743717451
"flatted@npm:^3.2.7, flatted@npm:^3.2.9":
1743817452
version: 3.2.9
1743917453
resolution: "flatted@npm:3.2.9"

0 commit comments

Comments
 (0)