Skip to content

Commit

Permalink
fix(issues): Close dropdown on click (#81286)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper authored Nov 26, 2024
1 parent 5bc34f3 commit c5b12fd
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions static/app/views/issueDetails/streamline/eventNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation
<EventNavigationWrapper role="navigation">
<LargeDropdownButtonWrapper>
<DropdownMenu
onAction={key => {
trackAnalytics('issue_details.issue_content_selected', {
organization,
content: TabName[key],
});
}}
items={[
{
key: Tab.DETAILS,
Expand All @@ -209,12 +215,6 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation
...location,
pathname: `${baseUrl}${TabPaths[Tab.DETAILS]}`,
},
onAction: () => {
trackAnalytics('issue_details.issue_content_selected', {
organization,
content: TabName[Tab.DETAILS],
});
},
},
{
key: Tab.REPLAYS,
Expand All @@ -234,12 +234,6 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation
pathname: `${baseUrl}${TabPaths[Tab.REPLAYS]}`,
},
hidden: !issueTypeConfig.replays.enabled,
onAction: () => {
trackAnalytics('issue_details.issue_content_selected', {
organization,
content: TabName[Tab.REPLAYS],
});
},
},
{
key: Tab.ATTACHMENTS,
Expand All @@ -257,12 +251,6 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation
pathname: `${baseUrl}${TabPaths[Tab.ATTACHMENTS]}`,
},
hidden: !issueTypeConfig.attachments.enabled,
onAction: () => {
trackAnalytics('issue_details.issue_content_selected', {
organization,
content: TabName[Tab.ATTACHMENTS],
});
},
},
{
key: Tab.USER_FEEDBACK,
Expand All @@ -277,12 +265,6 @@ export function IssueEventNavigation({event, group, query}: IssueEventNavigation
pathname: `${baseUrl}${TabPaths[Tab.USER_FEEDBACK]}`,
},
hidden: !issueTypeConfig.userFeedback.enabled,
onAction: () => {
trackAnalytics('issue_details.issue_content_selected', {
organization,
content: TabName[Tab.USER_FEEDBACK],
});
},
},
]}
offset={[-2, 1]}
Expand Down

0 comments on commit c5b12fd

Please sign in to comment.