From 421f9fb3a01f087e40025dbb445854920e470587 Mon Sep 17 00:00:00 2001 From: epiqueras Date: Wed, 16 Oct 2019 12:58:40 -0700 Subject: [PATCH] Custom Select: Add temporary console debugging. --- packages/components/src/custom-select/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/components/src/custom-select/index.js b/packages/components/src/custom-select/index.js index d078b8ac04268b..1fd9ea5862d915 100644 --- a/packages/components/src/custom-select/index.js +++ b/packages/components/src/custom-select/index.js @@ -18,6 +18,18 @@ const stateReducer = ( { selectedItem }, { type, changes, props: { items } } ) => { + // TODO: Remove this. + // eslint-disable-next-line no-console + console.debug( + 'Selected Item: ', + selectedItem, + 'Type: ', + type, + 'Changes: ', + changes, + 'Items: ', + items + ); switch ( type ) { case useSelect.stateChangeTypes.ToggleButtonKeyDownArrowDown: // If we already have a selected item, try to select the next one, @@ -84,6 +96,7 @@ export default function CustomSelect( { label, items } ) {