Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pacocoursey committed Jan 30, 2024
1 parent 1ee804b commit 1239677
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmdk/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ type Group = {
forceMount?: boolean
}

const LIST_SELECTOR = `[cmdk-list-sizer=""]`
const GROUP_SELECTOR = `[cmdk-group=""]`
const GROUP_ITEMS_SELECTOR = `[cmdk-group-items=""]`
const GROUP_HEADING_SELECTOR = `[cmdk-group-heading=""]`
Expand Down Expand Up @@ -376,7 +375,7 @@ const Command = React.forwardRef<HTMLDivElement, CommandProps>((props, forwarded
// Sort items within groups to bottom
// Sort items outside of groups
// Sort groups to bottom (pushes all non-grouped items to the top)
const listInsertionElement = listInnerRef.current.querySelector(LIST_SELECTOR)
const listInsertionElement = listInnerRef.current

// Sort the items
getValidItems()
Expand Down

0 comments on commit 1239677

Please sign in to comment.