From 4454c705fabfafd09cea8779b183a8500a98d869 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Fri, 17 Mar 2023 08:05:12 -0500 Subject: [PATCH 1/2] fix(structuredlist): remove onChange deprecation warning --- .../react/src/components/StructuredList/StructuredList.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/react/src/components/StructuredList/StructuredList.js b/packages/react/src/components/StructuredList/StructuredList.js index 8a8f6cb5d35d..d11d7cc14157 100644 --- a/packages/react/src/components/StructuredList/StructuredList.js +++ b/packages/react/src/components/StructuredList/StructuredList.js @@ -294,10 +294,7 @@ StructuredListInput.propTypes = { /** * Provide an optional hook that is called each time the input is updated */ - onChange: deprecate( - PropTypes.func, - `\nThe prop \`onChange\` will be removed in the next major version of Carbon.` - ), + onChange: PropTypes.func, /** * Provide a `title` for the input From d25756061f4bcbcfe78d3ef5b480935007cd4c64 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Mon, 20 Mar 2023 13:59:32 -0500 Subject: [PATCH 2/2] chore: update snaps --- packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index 1fc7ac56d40f..c4839ab6c935 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -6857,7 +6857,9 @@ Map { "name": Object { "type": "string", }, - "onChange": [Function], + "onChange": Object { + "type": "func", + }, "title": Object { "type": "string", },