This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Repository navigation
Don't navigate the current page on meta/ctrl row click - #1111
Merged
Merged
Conversation
|
Claude finished @ericnewcomer's task in 47s —— View job Review: PR #1111 — Don't navigate the current page on meta/ctrl row click
Verdict: LGTM. The fix is correct and minimal — it hoists href resolution above the meta/ctrl check and returns early without firing Correctness
Security / performance — no concerns. Same-origin guard unchanged; one fewer Test coverage — the extended meta-click test now asserts Minor observations (non-blocking, out of scope):
|
📊 Coverage ReportSummary
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Command/ctrl-clicking a row in the new list components opened the row in a new tab as expected, but the original page also navigated. The row click handler fired the
temba-row-clickevent before checking for meta/ctrl, and host pages navigate on that event unconditionally — so the host swapped the current page out from under the new tab.Changes
handleRowClicknow resolves the row href and checks for meta/ctrl first. When the click opens a new tab, the handler returns without firingRowClick(orRedirected), so host pages never see it. Plain clicks are unchanged:RowClickfires, followed byRedirectedwhen the row has a safe href. All list subclasses (flows, contacts, messages, campaigns, triggers, broadcasts) share this handler.temba-row-clickdoes not fire, which is the assertion that would have caught this.Behavior examples
Test plan
window.openis called once and neithertemba-redirectednortemba-row-clickfires