From e019e2f570c66c1c5dfee6a11333bb4ab738e4d0 Mon Sep 17 00:00:00 2001 From: Marcelo Serpa Date: Fri, 10 May 2024 13:15:00 -0600 Subject: [PATCH] Fix option handling logic for legacy adater and update test to reflect the option with custom property scenario --- .../legacy-component/index.tsx | 2 +- .../legacy-component/test/index.tsx | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/components/src/custom-select-control-v2/legacy-component/index.tsx b/packages/components/src/custom-select-control-v2/legacy-component/index.tsx index 2e35965e86e982..fb6268522c7ba1 100644 --- a/packages/components/src/custom-select-control-v2/legacy-component/index.tsx +++ b/packages/components/src/custom-select-control-v2/legacy-component/index.tsx @@ -48,6 +48,7 @@ function CustomSelectControl( props: LegacyCustomSelectProps ) { selectedItem: option!, type: '', }; + debugger; onChange( changeObject ); }, } ); @@ -131,7 +132,6 @@ export default CustomSelectControl; // for backwards compatibility export function ClassicCustomSelectControl( props: LegacyCustomSelectProps ) { - console.debug( props ); return ( {