Skip to content

Commit

Permalink
Remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-yossarian committed Feb 2, 2020
1 parent 676b9d7 commit e530032
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -422,7 +421,6 @@ export default function useAutocomplete(props) {
};

const handleValue = (event, newValue) => {
console.log('handleValue', { newValue, onChange });
if (value === newValue) {
return;
}
Expand Down Expand Up @@ -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');
}
Expand Down

0 comments on commit e530032

Please sign in to comment.