Skip to content

Commit

Permalink
fix(tasks): don't open tasks search on hotkey + enter (#6165)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin authored Apr 2, 2024
1 parent 8db7485 commit d387316
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export interface SearchPopoverProps {
disableIntentLink?: boolean
onClose: () => void
onItemSelect?: ItemSelectHandler
onOpen: () => void
/**
* If provided, will trigger to open the search popover when user types hotkey + k
*/
onOpen?: () => void
open: boolean
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface SearchWrapperProps {
children: ReactNode
hasValidTerms: boolean
onClose: () => void
onOpen: () => void
onOpen?: () => void
open: boolean
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ export function TargetField(
<SearchPopover
open={open}
onClose={handleCloseSearch}
onOpen={handleOpenSearch}
onItemSelect={handleItemSelect}
disableIntentLink
/>
Expand Down

0 comments on commit d387316

Please sign in to comment.