From e5300320dd1c7bbb3238ebac622b0b431bf43a84 Mon Sep 17 00:00:00 2001 From: Serhii Date: Sun, 2 Feb 2020 16:05:37 +0100 Subject: [PATCH] Remove console --- .../material-ui-lab/src/useAutocomplete/useAutocomplete.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js index c28cae61f42433..3c25298e2057c3 100644 --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js @@ -210,7 +210,6 @@ export default function useAutocomplete(props) { newInputValue = ''; } else { const optionLabel = getOptionLabel(newValue); - console.log('reset', { optionLabel }); if (process.env.NODE_ENV !== 'production') { if (typeof optionLabel !== 'string') { @@ -422,7 +421,6 @@ export default function useAutocomplete(props) { }; const handleValue = (event, newValue) => { - console.log('handleValue', { newValue, onChange }); if (value === newValue) { return; } @@ -651,7 +649,7 @@ export default function useAutocomplete(props) { } const isEmptyOptions = filteredOptions.length === 0; - if (autoSelect && !freeSolo && popupOpen) { + if (freeSolo && popupOpen) { if (!isEmptyOptions && highlightedIndexRef.current !== -1 && multiple) { selectNewValue(event, filteredOptions[highlightedIndexRef.current], 'freeSolo'); }