Skip to content

Prevent vexrule modal from flashing when clicking redirection link#696

Open
Dboy0ZDev wants to merge 2 commits intomainfrom
vexrule-modal-flashing
Open

Prevent vexrule modal from flashing when clicking redirection link#696
Dboy0ZDev wants to merge 2 commits intomainfrom
vexrule-modal-flashing

Conversation

@Dboy0ZDev
Copy link
Copy Markdown
Collaborator

@Dboy0ZDev Dboy0ZDev commented Apr 10, 2026

Copilot AI review requested due to automatic review settings April 10, 2026 14:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to prevent the VEX rule details modal from briefly opening (“flashing”) when a user clicks the CVE ID link that navigates to the dependency risks page.

Changes:

  • Stops click event propagation on the CVE ID <Link> inside the VEX rules table cell to avoid triggering the row’s click handler.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 67 to 69
<Link
onClick={(event)=>{event.stopPropagation()}}
href={`/${params.organizationSlug}/projects/${params.projectSlug}/assets/${params.assetSlug}/refs/${params.assetVersionSlug}/dependency-risks?search=${encodeURIComponent(cveId)}&state=closed`}
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

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

Formatting here doesn’t match the repo’s Prettier-enforced style (e.g., missing spaces around => and unnecessary block). This will likely fail prettier/prettier linting—please format like other stopPropagation handlers in the codebase (e.g., onClick={(e) => e.stopPropagation()}).

Copilot uses AI. Check for mistakes.
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.

2 participants