Skip to content

Conversation

@BenjaminCharmes
Copy link
Contributor

Closes #1465

Changes click behavior in DataTable for both items and collections:

  • Normal click: opens in same tab
  • Ctrl/Cmd + click: opens in new tab

@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.34%. Comparing base (936e6b7) to head (3595a2b).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1468      +/-   ##
==========================================
- Coverage   79.46%   79.34%   -0.12%     
==========================================
  Files          70       70              
  Lines        5055     5099      +44     
==========================================
+ Hits         4017     4046      +29     
- Misses       1038     1053      +15     

see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cypress
Copy link

cypress bot commented Dec 1, 2025

datalab    Run #4265

Run Properties:  status check passed Passed #4265  •  git commit 588ef345d0 ℹ️: Merge 3595a2b033bf31d7db0ac73bf05204dc0e38307d into 42439305edbc49d0278b0d992815...
Project datalab
Branch Review bc/datatable-click
Run status status check passed Passed #4265
Run duration 08m 32s
Commit git commit 588ef345d0 ℹ️: Merge 3595a2b033bf31d7db0ac73bf05204dc0e38307d into 42439305edbc49d0278b0d992815...
Committer Ben Charmes
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 456
View all changes introduced in this branch ↗︎

@BenjaminCharmes BenjaminCharmes force-pushed the bc/datatable-click branch 14 times, most recently from 68e8000 to 21fbbbc Compare December 2, 2025 10:09
@BenjaminCharmes BenjaminCharmes marked this pull request as ready for review December 2, 2025 10:30
Allow normal click to open items in same tab from DataTable

Allow normal click to open items in same tab from DataTable

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab

Don't let cypress open new tab
@ml-evs ml-evs force-pushed the bc/datatable-click branch from 21fbbbc to a7ad41b Compare December 2, 2025 10:39
@jdbocarsly
Copy link
Member

Can you make the modified click open the page in a new tab in the background (i.e., don't change focus to the new tab)?That's standard for browsers.

@BenjaminCharmes
Copy link
Contributor Author

Can you make the modified click open the page in a new tab in the background (i.e., don't change focus to the new tab)?That's standard for browsers.

I removed window.focus() to use the browser's default behavior, trying to force focus on modified click didn't work anyway (at least for me on mac)

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.

Allow samples to be opened from table in same tab

3 participants