diff --git a/apps/web/src/components/editor/header.js b/apps/web/src/components/editor/header.js index b2f9494ee..5fb743bd3 100644 --- a/apps/web/src/components/editor/header.js +++ b/apps/web/src/components/editor/header.js @@ -135,7 +135,6 @@ function Autosuggest({ const text = getInputValue(); const isFocused = document.activeElement === inputRef.current; if (isFocused && !text) setFiltered(defaultItems); - console.log(isFocused, text); }, [defaultItems, getInputValue]); useEffect(() => { diff --git a/apps/web/src/components/list-container/index.js b/apps/web/src/components/list-container/index.js index 354b4f165..6793d24ee 100644 --- a/apps/web/src/components/list-container/index.js +++ b/apps/web/src/components/list-container/index.js @@ -66,7 +66,7 @@ function ListContainer(props) { if (isNaN(endIndex)) return; setSelectedItems([ ...selectionStore.get().selectedItems, - ...items.slice(focusedItemIndex.current, endIndex + 1), + ...items.slice(focusedItemIndex.current + 1, endIndex + 1), ]); listItem.firstElementChild.focus(); }