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

Backport of [ui] Prevent double-open for cmd+click on jobs index links into release/1.8.x #23842

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #23832 to be assessed for backporting due to the inclusion of the label backport/1.8.x.

The below text is copied from the body of the original PR.


Previously, cmd+click (or ctrl+click) on the <a> tag within job rows on the jobs index page would double-open the page: once in a new tab (as cmd+click does) and another in the same tab (as it would trigger the {{on "click"}} Ember event for the job row.

This checks to make sure the clicked element wasn't the anchor tag itself, and if it is, it returns early.

NB: it's a bad practice, generally, to have non-interactive elements like table rows be clickable! However this follows a long-standing convention in the Nomad UI that users may be used to from years of use, and has more than one highly accessible fallback.

Resolves #23544


Overview of commits

Copy link

Ember Test Audit comparison

release/1.8.x f29b02f change
passes 1569 1569 0
failures 2 2 0
flaky 0 0 0
duration 000ms 000ms -000ms

@philrenaud philrenaud merged commit cb10a25 into release/1.8.x Aug 19, 2024
15 of 16 checks passed
@philrenaud philrenaud deleted the backport/23544-ui-cmdctrl-+-click-wont-correctly-open-new-tabs/loosely-cunning-ibex branch August 19, 2024 17:44
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants