Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove onKeyPress on AccordionTrigger #5993

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Conversation

thenamankumar
Copy link
Member

@thenamankumar thenamankumar commented Oct 24, 2024

context: https://sourcegraph.slack.com/archives/C05AGQYD528/p1729773000841009

Somehow onKeyPress causing an infinite loop of telemetry records. Also with the most recent changes the context items opened event is getting recorded even when the context menu is closed.

This PR makes it so that the event is only getting recorded once.

Test plan

  • Contact Piotr, even I don't know.

Changelog

@thenamankumar thenamankumar changed the title Add a noop for onKeyPress on AccordionTrigger Remove onKeyPress on AccordionTrigger Oct 24, 2024
Copy link
Contributor

@pkukielka pkukielka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thenamankumar thenamankumar enabled auto-merge (squash) October 24, 2024 14:51
@thenamankumar thenamankumar merged commit 30fde3d into main Oct 24, 2024
19 of 20 checks passed
@thenamankumar thenamankumar deleted the naman/onkeypress-noop branch October 24, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants