From 0ba9b067b24d2cfab92f3c52ae6214f6930e7c6d Mon Sep 17 00:00:00 2001 From: Sangeetha Babu Date: Thu, 29 Feb 2024 00:41:28 +0530 Subject: [PATCH] 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. --- packages/carbon-web-components/package.json | 2 +- .../src/components/date-picker/range-plugin.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/carbon-web-components/package.json b/packages/carbon-web-components/package.json index 4f93ed93212..855d8df7269 100644 --- a/packages/carbon-web-components/package.json +++ b/packages/carbon-web-components/package.json @@ -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" }, diff --git a/packages/carbon-web-components/src/components/date-picker/range-plugin.ts b/packages/carbon-web-components/src/components/date-picker/range-plugin.ts index 5d2f5e81e6f..ee7c6a3de29 100644 --- a/packages/carbon-web-components/src/components/date-picker/range-plugin.ts +++ b/packages/carbon-web-components/src/components/date-picker/range-plugin.ts @@ -105,7 +105,6 @@ export default (config: Config): Plugin => { fp._hBXCEDatePickerRangePluginOnBlurTo.release(); } }; - return Object.assign(origRangePlugin, { onReady() { origOnReady.call(this);