Skip to content

Commit

Permalink
fix click on space pill opening the page
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jul 30, 2024
1 parent 668d7f7 commit 09caa76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
9 changes: 6 additions & 3 deletions src/common-ui/components/result-item-spaces-segment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ export default function ListsSegment({
return (
<ListSpaceContainer
key={space.id}
onClick={(e) => {
e.stopPropagation()
onListClick(space.id)
onMouseDown={(event: React.MouseEvent) => {
event.stopPropagation()
onListClick(space.id, event)
}}
onMouseUp={(event: React.MouseEvent) => {
event.stopPropagation()
}}
isLoading={space.name == null && space != null}
title={
Expand Down
14 changes: 0 additions & 14 deletions src/in-page-ui/ribbon/react/components/ribbon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1994,20 +1994,6 @@ export default class Ribbon extends Component<Props, State> {
}}
>
<Icon
// onClick={(event) => {
// if (this.props.showRemoveMenu) {
// this.props.handleRemoveRibbon()
// } else {
// this.props.toggleRemoveMenu()
// }
// }}
// onClick={(event) => {
// if (event.shiftKey && this.props.isRibbonEnabled) {
// this.props.handleHover()
// } else {
// this.props.handleRemoveRibbon()
// }
// }}
color={'greyScale5'}
heightAndWidth="24px"
padding="4px"
Expand Down

0 comments on commit 09caa76

Please sign in to comment.